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

This commit is contained in:
Robert Hensing
2025-11-09 18:10:42 +00:00
committed by GitHub

View File

@@ -1,12 +1,15 @@
{
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 ];
};