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";
};
nixosModule = {
lab = {
storage.profile = "kubernetes";
backups.enable = true;
data-sharing.enable = true;
tailscale.enable = true;
nixosModule.lab = {
storage.profile = "kubernetes";
backups.enable = true;
data-sharing.enable = true;
tailscale.enable = true;
k3s = {
enable = true;
serverAddr = "https://jefke.dmz:6443";
};
k3s = {
enable = true;
serverAddr = "https://jefke.dmz:6443";
};
};
};

View file

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