Unverified Commit 83d73e9c authored by Robert Hensing's avatar Robert Hensing Committed by GitHub
Browse files

nixos/default.nix: Allow specialArgs to be passed (#442886)

parents c60d5213 96acd099
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
{
  configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" <nixos-config>,
  system ? builtins.currentSystem,
  # This should only be used for special arguments that need to be evaluated when resolving module structure (like in imports).
  # For everything else, there's _module.args.
  specialArgs ? { },
}:

let

  eval = import ./lib/eval-config.nix {
    inherit system;
    inherit system specialArgs;
    modules = [ configuration ];
  };