liminix/merge-modules.nix
2022-09-25 11:52:02 +01:00

8 lines
195 B
Nix

modules : pkgs :
let evalModules = (import <nixpkgs/lib>).evalModules;
in (evalModules {
modules =
[
{ _module.args = { inherit pkgs; lib = pkgs.lib; }; }
] ++ modules;
}).config