lib: add evalModulesConfig
This commit is contained in:
parent
2dd6f09222
commit
32c9720ca4
@ -2,6 +2,12 @@ let
|
|||||||
nixpkgs-lib = import <nixpkgs/lib>;
|
nixpkgs-lib = import <nixpkgs/lib>;
|
||||||
lib = with lib; nixpkgs-lib // builtins // {
|
lib = with lib; nixpkgs-lib // builtins // {
|
||||||
|
|
||||||
|
evalModulesConfig = modules: let
|
||||||
|
eval = evalModules {
|
||||||
|
inherit modules;
|
||||||
|
};
|
||||||
|
in filterAttrsRecursive (name: _: !hasPrefix "_" name) eval.config;
|
||||||
|
|
||||||
evalSource = import ./eval-source.nix;
|
evalSource = import ./eval-source.nix;
|
||||||
|
|
||||||
git = import ./git.nix { inherit lib; };
|
git = import ./git.nix { inherit lib; };
|
||||||
|
Loading…
Reference in New Issue
Block a user