lib: add evalSubmodule

This commit is contained in:
tv 2022-03-18 13:49:07 +01:00
parent 32c9720ca4
commit 5903fb0b61

View File

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