flake: add extraSpecialArgs

This allows flake user to pass extra arguments to all modules.
This commit is contained in:
mlatus
2021-01-06 10:31:01 +08:00
committed by Robert Helgesson
parent a361541c10
commit cf5dad76c1
2 changed files with 5 additions and 3 deletions

View File

@@ -4,6 +4,8 @@
# Whether to check that each option has a matching declaration.
, check ? true
# Extra arguments passed to specialArgs.
, extraSpecialArgs ? { }
}:
with lib;
@@ -31,7 +33,7 @@ let
modules = [ configuration ] ++ hmModules;
specialArgs = {
modulesPath = builtins.toString ./.;
};
} // extraSpecialArgs;
};
module = showWarnings (