Make machines' nixos module an attrset

This commit is contained in:
Pim Kunis 2024-09-22 22:46:56 +02:00
parent e91f37d700
commit 3d456b1a43
2 changed files with 14 additions and 18 deletions

View file

@ -6,17 +6,15 @@
hasMedia = "true"; hasMedia = "true";
}; };
nixosModule = { nixosModule.lab = {
lab = { storage.profile = "kubernetes";
storage.profile = "kubernetes"; backups.enable = true;
backups.enable = true; data-sharing.enable = true;
data-sharing.enable = true; tailscale.enable = true;
tailscale.enable = true;
k3s = { k3s = {
enable = true; enable = true;
serverAddr = "https://jefke.dmz:6443"; serverAddr = "https://jefke.dmz:6443";
};
}; };
}; };
}; };

View file

@ -3,15 +3,13 @@
arch = "aarch64-linux"; arch = "aarch64-linux";
isRaspberryPi = true; isRaspberryPi = true;
nixosModule = { lib, ... }: { nixosModule.lab = {
lab = { storage.profile = "pi";
storage.profile = "pi"; monitoring.server.enable = true;
monitoring.server.enable = true;
tailscale = { tailscale = {
advertiseExitNode = true; advertiseExitNode = true;
enable = true; enable = true;
};
}; };
}; };
}; };