nixos/systemd-lib: Use module composition

This commit is contained in:
Janne Heß 2022-04-01 09:39:56 +02:00
parent fc91cdb5bc
commit 1e5261f31c
No known key found for this signature in database
GPG key ID: 69165158F05265DF
2 changed files with 21 additions and 19 deletions

View file

@ -11,8 +11,8 @@ rec {
config = { unit = mkDefault (systemdUtils.lib.makeUnit name config); };
}));
services = with types; attrsOf (submodule [ { options = serviceOptions; } unitConfig serviceConfig ]);
initrdServices = with types; attrsOf (submodule [ { options = serviceOptions; } unitConfig initrdServiceConfig ]);
services = with types; attrsOf (submodule [ { options = serviceOptions; } unitConfig stage2ServiceConfig ]);
initrdServices = with types; attrsOf (submodule [ { options = serviceOptions; } unitConfig stage1ServiceConfig ]);
targets = with types; attrsOf (submodule [ { options = targetOptions; } unitConfig ]);