2025-01-13 00:46:22 +01:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
networking = {
|
|
|
|
|
hostName = "Stormwind";
|
2025-04-07 12:45:31 +02:00
|
|
|
networkmanager.enable = false;
|
2025-01-13 23:43:39 +01:00
|
|
|
|
2026-01-26 15:36:02 +01:00
|
|
|
nameservers = [ "192.168.0.1" "1.1.1.1" ];
|
2025-01-13 23:43:39 +01:00
|
|
|
|
|
|
|
|
firewall = {
|
2026-01-26 15:36:02 +01:00
|
|
|
enable = true;
|
2026-01-26 23:34:48 +01:00
|
|
|
allowedTCPPorts = [ 53 2222 ];
|
|
|
|
|
allowedUDPPorts = [ 53 67 68 ];
|
2025-01-13 23:43:39 +01:00
|
|
|
};
|
|
|
|
|
|
2025-07-22 10:25:34 +02:00
|
|
|
bridges = {
|
|
|
|
|
incusbr1 = {
|
|
|
|
|
interfaces = [];
|
|
|
|
|
};
|
2026-01-26 15:36:02 +01:00
|
|
|
incusbr2 = {
|
|
|
|
|
interfaces = [ "enp4s0" ];
|
|
|
|
|
};
|
2025-07-22 10:25:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
interfaces = {
|
|
|
|
|
incusbr1 = {
|
|
|
|
|
ipv4.addresses = [
|
2025-07-30 11:57:38 +02:00
|
|
|
{ address = "10.46.33.1"; prefixLength = 24; }
|
2025-07-22 10:25:34 +02:00
|
|
|
];
|
|
|
|
|
};
|
2026-01-26 15:36:02 +01:00
|
|
|
incusbr2 = {
|
|
|
|
|
ipv4.addresses = [
|
|
|
|
|
{ address = "192.168.0.19"; prefixLength = 24; }
|
|
|
|
|
];
|
|
|
|
|
macAddress = "2c:fd:a1:c1:13:b0";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
defaultGateway = {
|
|
|
|
|
address = "192.168.0.1";
|
|
|
|
|
interface = "incusbr2";
|
2025-07-22 10:25:34 +02:00
|
|
|
};
|
2025-01-13 00:46:22 +01:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|