mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
nixos/eval-config: Layer on top of nixos/eval-config-minimal
This commit is contained in:
parent
e31e096b66
commit
25caf736d5
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user