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:
|
||||
let
|
||||
serviceName = "${name}.service";
|
||||
service = nixosConfig.systemd.services.${name};
|
||||
in
|
||||
lib.nameValuePair serviceName {
|
||||
inherit (service) wantedBy requiredBy;
|
||||
storePath =
|
||||
''${nixosConfig.systemd.units."${serviceName}".unit}/${serviceName}'';
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue