lib: add evalModulesConfig

This commit is contained in:
tv 2022-03-18 13:48:56 +01:00
parent 2dd6f09222
commit 32c9720ca4

View File

@ -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; };