nixos/eval-config: Layer on top of nixos/eval-config-minimal

This commit is contained in:
Robert Hensing 2022-01-04 22:00:00 +01:00
parent e31e096b66
commit 25caf736d5
2 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@ let
inherit (nonExtendedLib) warn;
nonExtendedLib = import ../../lib;
in
{ lib ? nonExtendedLib, ... }:
{ lib ? nonExtendedLib, bypassEvalModulesWarning ? false, ... }:
let
/*
@ -43,5 +43,5 @@ let
in
{
evalModules = builtins.seq experimentalWarning evalModules;
evalModules = builtins.seq (if bypassEvalModulesWarning then null else experimentalWarning) evalModules;
}

View file

@ -33,6 +33,8 @@ let pkgs_ = pkgs;
in
let
evalModulesMinimal = (import ./eval-config-minimal.nix { inherit lib; bypassEvalModulesWarning = true; }).evalModules;
pkgsModule = rec {
_file = ./eval-config.nix;
key = _file;
@ -70,11 +72,9 @@ let
};
allUserModules = modules ++ legacyModules;
noUserModules = lib.evalModules ({
inherit prefix;
noUserModules = evalModulesMinimal ({
inherit prefix specialArgs;
modules = baseModules ++ extraModules ++ [ pkgsModule modulesModule ];
specialArgs =
{ modulesPath = builtins.toString ../modules; } // specialArgs;
});
# Extra arguments that are useful for constructing a similar configuration.