services: fix extraModules as path
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
# Wraps all services in one fixed point module
|
||||
{
|
||||
# TODO: consume directly from clan.config
|
||||
directory,
|
||||
}:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
@@ -29,6 +33,8 @@ in
|
||||
{
|
||||
_module.args._ctx = [ name ];
|
||||
_module.args.exports' = config.exports;
|
||||
_module.args.directory = directory;
|
||||
|
||||
}
|
||||
)
|
||||
./service-module.nix
|
||||
@@ -71,8 +77,5 @@ in
|
||||
};
|
||||
default = { };
|
||||
};
|
||||
debug = mkOption {
|
||||
default = lib.mapAttrsToList (_: service: service.exports) config.mappedServices;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user