nixos-servers/machines/warwick.nix

57 lines
1.1 KiB
Nix
Raw Normal View History

{
machines.warwick = {
arch = "aarch64-linux";
isRaspberryPi = true;
2024-03-05 19:56:00 +00:00
nixosModule = {
lab.monitoring.server.enable = true;
2024-05-15 18:59:21 +00:00
2024-05-15 20:05:28 +00:00
services.bird2 = {
enable = true;
config = builtins.readFile ./bird.conf;
};
2024-05-15 18:59:21 +00:00
systemd.network = {
2024-05-15 20:05:28 +00:00
netdevs = {
hamgre = {
netdevConfig = {
Name = "hamgre";
Kind = "gre";
MTUBytes = "1468";
};
2024-05-15 18:59:21 +00:00
2024-05-15 20:05:28 +00:00
tunnelConfig = {
Remote = "145.220.78.4";
#Local = "192.145.57.90";
};
2024-05-15 18:59:21 +00:00
};
2024-05-15 20:05:28 +00:00
# hambr = {
# netdevConfig = {
# Name = "hambr";
# Kind = "bridge";
# };
# };
2024-05-15 18:59:21 +00:00
};
networks = {
"30-main-nic".networkConfig.Tunnel = "hamgre";
2024-05-15 20:05:28 +00:00
2024-05-15 18:59:21 +00:00
"40-hamgre" = {
matchConfig.Name = "hamgre";
networkConfig = {
Address = "44.137.61.34/30";
};
};
2024-05-15 20:05:28 +00:00
# "40-hambr" = {
# matchConfig.Name = "hambr";
# };
2024-05-15 18:59:21 +00:00
};
};
2024-03-05 19:56:00 +00:00
};
};
}