nixos: Don't evaluate twice to get the value of config.nixpkgs
This commit is contained in:
committed by
Nicolas B. Pierron
parent
1d62ad4746
commit
e4a06f35b1
+2
-2
@@ -12,10 +12,10 @@ rec {
|
||||
and ‘config’: the nested set of all option values. */
|
||||
evalModules = { modules, prefix ? [], args ? {}, check ? true }:
|
||||
let
|
||||
internalModule = {
|
||||
internalModule = rec {
|
||||
_file = ./modules.nix;
|
||||
|
||||
key = ./modules.nix;
|
||||
key = _file;
|
||||
|
||||
options = {
|
||||
__internal.args = mkOption {
|
||||
|
||||
Reference in New Issue
Block a user