Create more services to test activation logic.
This commit is contained in:
parent
50b4212a06
commit
c7a481976d
2 changed files with 34 additions and 44 deletions
17
nix/lib.nix
17
nix/lib.nix
|
|
@ -17,12 +17,17 @@ in
|
|||
specialArgs = { };
|
||||
};
|
||||
|
||||
services = map
|
||||
(name: {
|
||||
inherit name;
|
||||
service = ''${nixosConfig.config.systemd.units."${name}.service".unit}/${name}.service'';
|
||||
})
|
||||
nixosConfig.config.service-manager.services;
|
||||
services =
|
||||
map
|
||||
(name:
|
||||
let
|
||||
serviceName = "${name}.service";
|
||||
in
|
||||
{
|
||||
name = serviceName;
|
||||
service = ''${nixosConfig.config.systemd.units."${serviceName}".unit}/${serviceName}'';
|
||||
})
|
||||
nixosConfig.config.service-manager.services;
|
||||
|
||||
servicesPath = pkgs.writeTextFile {
|
||||
name = "services";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue