summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-18 13:48:56 +0100
committertv <tv@krebsco.de>2022-03-18 16:17:44 +0100
commit32c9720ca46537af4715245797b78734e6a762d0 (patch)
tree5013c0461a35be01461ebaaa3830315e2da9581b
parent2dd6f092224ba5806c206f23ddff4e978c27d1e1 (diff)
lib: add evalModulesConfig
-rw-r--r--lib/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 94a81439e..55cf1765e 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -2,6 +2,12 @@ let
nixpkgs-lib = import <nixpkgs/lib>;
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;
git = import ./git.nix { inherit lib; };