Add WantedBy and RequiredBy to the JSON file produced by Nix.
This commit is contained in:
parent
126cad884b
commit
daae141949
1 changed files with 2 additions and 0 deletions
|
|
@ -36,8 +36,10 @@ in
|
||||||
(name:
|
(name:
|
||||||
let
|
let
|
||||||
serviceName = "${name}.service";
|
serviceName = "${name}.service";
|
||||||
|
service = nixosConfig.systemd.services.${name};
|
||||||
in
|
in
|
||||||
lib.nameValuePair serviceName {
|
lib.nameValuePair serviceName {
|
||||||
|
inherit (service) wantedBy requiredBy;
|
||||||
storePath =
|
storePath =
|
||||||
''${nixosConfig.systemd.units."${serviceName}".unit}/${serviceName}'';
|
''${nixosConfig.systemd.units."${serviceName}".unit}/${serviceName}'';
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue