diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-10-10 13:23:56 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-10-10 13:25:15 +0200 |
commit | a14f3f829d46d3273c03f4fd9037c0e9f9ada5ae (patch) | |
tree | 7ac05d55a36f4d46000eb09ede8755c1d39e9ff2 /nixos | |
parent | 1c0427862e47ecce41a2c169eec251570d170fd3 (diff) |
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)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/lib/eval-config.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/lib/eval-config.nix b/nixos/lib/eval-config.nix index 0b151cbd85cac..da099f86aa2ce 100644 --- a/nixos/lib/eval-config.nix +++ b/nixos/lib/eval-config.nix @@ -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) |