expose modulesPath to ease out-of-tree configuration.nix

main
Daniel Barlow 2024-03-17 19:03:44 +00:00
parent 98318b450d
commit 4ea518e296
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,9 @@ let
});
eval = pkgs.lib.evalModules {
specialArgs = {
modulesPath = builtins.toString ./modules;
};
modules = [
{ _module.args = { inherit pkgs; inherit (pkgs) lim; }; }
./modules/hardware.nix

View File

@ -8,6 +8,7 @@
config,
pkgs,
lib,
modulesPath,
...
}: let
secrets = import ./extneder-secrets.nix;
@ -20,8 +21,8 @@ in rec {
};
imports = [
../modules/profiles/wap.nix
../modules/vlan
"${modulesPath}/profiles/wap.nix"
"${modulesPath}/vlan"
];
hostname = "extneder";