diff options
author | tv <tv@krebsco.de> | 2022-03-18 13:49:07 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-03-18 16:17:44 +0100 |
commit | 5903fb0b61e6e6524dd3bbdfaa81b7775a134304 (patch) | |
tree | e54ce4dea8e745dd407ff42689679754a826c65a | |
parent | 32c9720ca46537af4715245797b78734e6a762d0 (diff) |
lib: add evalSubmodule
-rw-r--r-- | lib/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index 55cf1765e..7c3b0370e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -10,6 +10,15 @@ let evalSource = import ./eval-source.nix; + evalSubmodule = submodule: modules: let + prefix = ["evalSubmodule"]; + in evalModulesConfig [ + { + options = removeAttrs (submodule.getSubOptions prefix) ["_module"]; + imports = modules; + } + ]; + git = import ./git.nix { inherit lib; }; haskell = import ./haskell.nix { inherit lib; }; krebs = import ./krebs lib; |