mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 09:17:42 +00:00
nixos/lib: Clarify that nixos.evalModules impl is NOT experimental
This commit is contained in:
parent
d3f956aba3
commit
3168017b90
@ -31,7 +31,12 @@ let
|
||||
prefix ? [],
|
||||
modules ? [],
|
||||
specialArgs ? {},
|
||||
}: lib.evalModules {
|
||||
}:
|
||||
# NOTE: Regular NixOS currently does use this function! Don't break it!
|
||||
# Ideally we don't diverge, unless we learn that we should.
|
||||
# In other words, only the public interface of nixos.evalModules
|
||||
# is experimental.
|
||||
lib.evalModules {
|
||||
inherit prefix modules;
|
||||
specialArgs = {
|
||||
modulesPath = builtins.toString ../modules;
|
||||
|
@ -33,7 +33,11 @@ let pkgs_ = pkgs;
|
||||
in
|
||||
|
||||
let
|
||||
evalModulesMinimal = (import ./eval-config-minimal.nix { inherit lib; bypassEvalModulesWarning = true; }).evalModules;
|
||||
evalModulesMinimal = (import ./default.nix {
|
||||
inherit lib;
|
||||
# Implicit use of feature is noted in implementation.
|
||||
featureFlags.minimalModules = { };
|
||||
}).evalModules;
|
||||
|
||||
pkgsModule = rec {
|
||||
_file = ./eval-config.nix;
|
||||
|
Loading…
Reference in New Issue
Block a user