Files
nixos/system/networking.nix
T
2026-04-21 20:37:25 +01:00

58 lines
1.4 KiB
Nix

{ hostname, ... }:
{
networking = {
hostName = hostname;
networkmanager.enable = true;
wireless = {
iwd.enable = true;
networks = {
ssid = "Outskirt Stable";
psk = "SidonPhlegm";
};
};
firewall = {
enable = true;
# Ports used by Local Send
allowedTCPPorts = [
53317
8001
8002
8003
8004
2049
111
];
allowedUDPPorts = [
53317
8001
8002
8003
8004
2049
111
];
extraCommands = "
iptables -I nixos-fw 1 -i br+ -j ACCEPT
";
extraStopCommands = "
iptables -D nixos-fw -i br+ -j ACCEPT
";
};
hosts = {
"127.0.0.1" = [
"localhost"
"host.docker.internal"
"runcats.test"
"dev.runcats.test"
"landing.runcats.test"
"api.runcats.test"
"mail.runcats.test"
"kibana.runcats.test"
"img.runcats.test"
"docs.runcats.test"
];
};
};
}