Complete rework of the systemd logic.
This commit is contained in:
parent
806b1f23fd
commit
58353436c2
9 changed files with 316 additions and 164 deletions
|
|
@ -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}'';
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue