nixos/systemd: use cfg.package in systemPackages to avoid confusion
This commit is contained in:
parent
033bd4fa9a
commit
3df045e6d5
@ -8,8 +8,6 @@ let
|
||||
|
||||
cfg = config.systemd;
|
||||
|
||||
systemd = cfg.package;
|
||||
|
||||
inherit (systemdUtils.lib)
|
||||
generateUnits
|
||||
targetToUnit
|
||||
@ -439,7 +437,7 @@ in
|
||||
|
||||
system.build.units = cfg.units;
|
||||
|
||||
system.nssModules = [ systemd.out ];
|
||||
system.nssModules = [ cfg.package.out ];
|
||||
system.nssDatabases = {
|
||||
hosts = (mkMerge [
|
||||
(mkOrder 400 ["mymachines"]) # 400 to ensure it comes before resolve (which is mkBefore'd)
|
||||
@ -453,7 +451,7 @@ in
|
||||
]);
|
||||
};
|
||||
|
||||
environment.systemPackages = [ systemd ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
environment.etc = let
|
||||
# generate contents for /etc/systemd/system-${type} from attrset of links and packages
|
||||
|
Loading…
Reference in New Issue
Block a user