aboutsummaryrefslogtreecommitdiff
path: root/modules/default.nix
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-17 19:26:25 -0500
committertdback <tyler@tdback.net>2025-01-17 19:26:25 -0500
commit581b132852c492f55a5cc6c657a3d24171708d2e (patch)
tree5135b7cc73380951d8f456bbe2a21b620fb231e6 /modules/default.nix
parenta27cf2977656a40dd1f92ed262104f898a065499 (diff)
feat: add ability to specify system in mkSystem. add loki server
Diffstat (limited to 'modules/default.nix')
-rw-r--r--modules/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/default.nix b/modules/default.nix
index a8ac000..21e86fc 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -6,9 +6,9 @@ let
mkModules = moduleAttrList: builtins.concatMap (moduleAttr: genModules moduleAttr) moduleAttrList;
in
{
- mkSystem = hostname: nixpkgsVersion: modules: {
+ mkSystem = hostname: system: nixpkgsVersion: modules: {
${hostname} = nixpkgsVersion.lib.nixosSystem {
- system = "x86_64-linux";
+ system = system;
modules = (mkModules modules) ++ [
"${inputs.self}/hosts/${hostname}"
"${inputs.self}/modules/users"