Complete rework of the systemd logic.

This commit is contained in:
r-vdp 2023-03-21 16:14:12 +01:00
parent 806b1f23fd
commit 58353436c2
No known key found for this signature in database
9 changed files with 316 additions and 164 deletions

View file

@ -18,7 +18,9 @@ in
nixosConfig = (lib.nixosSystem {
inherit system;
modules = [ ./modules/system-manager.nix ] ++ modules;
modules = [
./modules/system-manager.nix
] ++ modules;
specialArgs = extraSpecialArgs;
}).config;
@ -36,10 +38,8 @@ 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}'';
})