Only include enabled units in the services.json file.

This commit is contained in:
r-vdp 2023-05-08 18:28:06 +02:00
parent a01bcc4034
commit 39d298626d
No known key found for this signature in database

View file

@ -52,7 +52,8 @@ in
storePath =
''${unit.unit}/${unitName}'';
})
config.systemd.units;
(lib.filterAttrs (_: unit: unit.enable)
config.systemd.units);
servicesPath = pkgs.writeTextFile {
name = "services";