nixos/eval-config.nix: Rename arg nixosSystem -> configuration
For some time now the attrset returned by `evalModules` has `type = "configuration"`. This is a clean refactor because the name is not exposed. (never is for simple lambda)
This commit is contained in:
parent
1c0427862e
commit
a14f3f829d
1 changed files with 3 additions and 3 deletions
|
@ -107,10 +107,10 @@ let
|
|||
|
||||
nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; };
|
||||
|
||||
withExtraAttrs = nixosSystem: nixosSystem // {
|
||||
withExtraAttrs = configuration: configuration // {
|
||||
inherit extraArgs;
|
||||
inherit (nixosSystem._module.args) pkgs;
|
||||
extendModules = args: withExtraAttrs (nixosSystem.extendModules args);
|
||||
inherit (configuration._module.args) pkgs;
|
||||
extendModules = args: withExtraAttrs (configuration.extendModules args);
|
||||
};
|
||||
in
|
||||
withWarnings (withExtraAttrs nixosWithUserModules)
|
||||
|
|
Loading…
Reference in a new issue