chore: add more topology information

This commit is contained in:
Harsh Shandilya 2024-04-14 12:44:58 +05:30
parent 3a21f6ee50
commit f3131b6a5b
5 changed files with 15 additions and 0 deletions

View File

@ -54,6 +54,7 @@
pkgs = channels.nixpkgs;
modules = [
{inherit (inputs.self) nixosConfigurations;}
./topology.nix
];
};

View File

@ -16,6 +16,8 @@
})
];
topology.self.name = "Raspberry Pi";
hardware.raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true;
pwm0.enable = true;

View File

@ -15,6 +15,8 @@
};
zramSwap.enable = true;
topology.self.name = "netcup server";
profiles.server.enable = true;
profiles.server.tailscaleExitNode = true;
networking.hostName = "wailord";

View File

@ -7,6 +7,8 @@
./hardware-configuration.nix
];
topology.self.name = "Desktop";
profiles.tailscale.enable = true;
profiles.desktop.enable = true;
profiles.desktop.android-dev.enable = true;

8
topology.nix Normal file
View File

@ -0,0 +1,8 @@
{
networks.home = {
name = "Home";
cidrv4 = "192.168.1.1/24";
};
nodes.crusty.interfaces.tailscale0.network = "home";
nodes.ryzenbox.interfaces.tailscale0.network = "home";
}