nixos/eval-config: Layer on top of nixos/eval-config-minimal
This commit is contained in:
parent
e31e096b66
commit
25caf736d5
2 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ let
|
||||||
inherit (nonExtendedLib) warn;
|
inherit (nonExtendedLib) warn;
|
||||||
nonExtendedLib = import ../../lib;
|
nonExtendedLib = import ../../lib;
|
||||||
in
|
in
|
||||||
{ lib ? nonExtendedLib, ... }:
|
{ lib ? nonExtendedLib, bypassEvalModulesWarning ? false, ... }:
|
||||||
let
|
let
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -43,5 +43,5 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
evalModules = builtins.seq experimentalWarning evalModules;
|
evalModules = builtins.seq (if bypassEvalModulesWarning then null else experimentalWarning) evalModules;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,8 @@ let pkgs_ = pkgs;
|
||||||
in
|
in
|
||||||
|
|
||||||
let
|
let
|
||||||
|
evalModulesMinimal = (import ./eval-config-minimal.nix { inherit lib; bypassEvalModulesWarning = true; }).evalModules;
|
||||||
|
|
||||||
pkgsModule = rec {
|
pkgsModule = rec {
|
||||||
_file = ./eval-config.nix;
|
_file = ./eval-config.nix;
|
||||||
key = _file;
|
key = _file;
|
||||||
|
@ -70,11 +72,9 @@ let
|
||||||
};
|
};
|
||||||
allUserModules = modules ++ legacyModules;
|
allUserModules = modules ++ legacyModules;
|
||||||
|
|
||||||
noUserModules = lib.evalModules ({
|
noUserModules = evalModulesMinimal ({
|
||||||
inherit prefix;
|
inherit prefix specialArgs;
|
||||||
modules = baseModules ++ extraModules ++ [ pkgsModule modulesModule ];
|
modules = baseModules ++ extraModules ++ [ pkgsModule modulesModule ];
|
||||||
specialArgs =
|
|
||||||
{ modulesPath = builtins.toString ../modules; } // specialArgs;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
# Extra arguments that are useful for constructing a similar configuration.
|
# Extra arguments that are useful for constructing a similar configuration.
|
||||||
|
|
Loading…
Reference in a new issue