Skip to content

Commit 83d73e9

Browse files
authored
nixos/default.nix: Allow specialArgs to be passed (NixOS#442886)
2 parents c60d521 + 96acd09 commit 83d73e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" <nixos-config>,
33
system ? builtins.currentSystem,
4+
# This should only be used for special arguments that need to be evaluated when resolving module structure (like in imports).
5+
# For everything else, there's _module.args.
6+
specialArgs ? { },
47
}:
58

69
let
710

811
eval = import ./lib/eval-config.nix {
9-
inherit system;
12+
inherit system specialArgs;
1013
modules = [ configuration ];
1114
};
1215

0 commit comments

Comments
 (0)