Add WantedBy and RequiredBy to the JSON file produced by Nix.

This commit is contained in:
R-VdP 2023-03-15 20:43:50 +01:00
parent 126cad884b
commit daae141949
No known key found for this signature in database

View file

@ -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}'';
}) })