forked from mirrors/nixpkgs
Merge pull request #177048 from NixOS/packages-systemd
nixos/systemd: use cfg.package in systemPackages to avoid confusion
This commit is contained in:
commit
f9b0f5d09c
|
@ -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 a new issue