Only include enabled units in the services.json file.
This commit is contained in:
parent
a01bcc4034
commit
39d298626d
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ in
|
||||||
storePath =
|
storePath =
|
||||||
''${unit.unit}/${unitName}'';
|
''${unit.unit}/${unitName}'';
|
||||||
})
|
})
|
||||||
config.systemd.units;
|
(lib.filterAttrs (_: unit: unit.enable)
|
||||||
|
config.systemd.units);
|
||||||
|
|
||||||
servicesPath = pkgs.writeTextFile {
|
servicesPath = pkgs.writeTextFile {
|
||||||
name = "services";
|
name = "services";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue