summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-18 13:49:07 +0100
committertv <tv@krebsco.de>2022-03-18 16:17:44 +0100
commitcaa2a9f4859be99a84f94353d00e967ab8e2e415 (patch)
treedf3d70b015c72dfafc4839e1569aa43481713265 /lib
parentec16b7778234c31dfcf9b1c9e3f54d045565fd9d (diff)
lib: add evalSubmodule
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 55cf176..7c3b037 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;