diff --git a/nixos/default.nix b/nixos/default.nix index f338e13fadb0..f87dd9a93365 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -1,12 +1,15 @@ { configuration ? import ./lib/from-env.nix "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 ]; };