Commit 1c042786 authored by Robert Hensing's avatar Robert Hensing
Browse files

nixos/eval-config.nix: Rename let withExtraArgs -> withExtraAttrs

Presumably it only used to add `extraArgs`, but it also adds other
attributes now.
parent 98deb47f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -107,10 +107,10 @@ let

  nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; };

  withExtraArgs = nixosSystem: nixosSystem // {
  withExtraAttrs = nixosSystem: nixosSystem // {
    inherit extraArgs;
    inherit (nixosSystem._module.args) pkgs;
    extendModules = args: withExtraArgs (nixosSystem.extendModules args);
    extendModules = args: withExtraAttrs (nixosSystem.extendModules args);
  };
in
withWarnings (withExtraArgs nixosWithUserModules)
withWarnings (withExtraAttrs nixosWithUserModules)