From 5bb68f24b539db1d9591ea320436b9dbdd2dc354 Mon Sep 17 00:00:00 2001 From: sinavir Date: Wed, 24 Jan 2024 16:56:40 +0100 Subject: [PATCH] add a modulesPath arg in modules evaluation --- default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index acfce7c..e747452 100644 --- a/default.nix +++ b/default.nix @@ -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;