add a modulesPath arg in modules evaluation

This commit is contained in:
sinavir 2024-01-24 16:56:40 +01:00
parent c9bacf6678
commit 5bb68f24b5

View file

@ -21,7 +21,12 @@ let
eval = pkgs.lib.evalModules {
modules = [
{ _module.args = { inherit pkgs; inherit (pkgs) lim; }; }
{
_module.args = {
inherit pkgs;
inherit (pkgs) lim;
};
}
./modules/hardware.nix
./modules/base.nix
./modules/busybox.nix
@ -35,6 +40,9 @@ let
boot.imageType = imageType;
}
];
specialArgs = {
modulesPath = builtins.toString ./modules;
};
};
config = eval.config;