Files
nixos/system/networking.nix
2026-03-25 21:14:36 +00:00

54 lines
1.3 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
];
allowedUDPPorts = [
53317
8001
8002
8003
8004
];
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"
];
};
};
}