Files
nixos/system/networking.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

2026-03-09 23:04:47 +00:00
{ hostname, ... }:
2026-03-09 20:27:18 +00:00
{
networking = {
2026-03-09 23:04:47 +00:00
hostName = hostname;
2026-03-09 20:27:18 +00:00
networkmanager.enable = true;
wireless = {
iwd.enable = true;
networks = {
ssid = "Outskirt Stable";
psk = "SidonPhlegm";
};
};
2026-03-25 21:07:14 +00:00
firewall = {
enable = true;
# Ports used by Local Send
2026-03-25 21:14:36 +00:00
allowedTCPPorts = [
53317
8001
8002
8003
8004
];
allowedUDPPorts = [
53317
8001
8002
8003
8004
];
2026-03-25 21:07:14 +00:00
extraCommands = "
iptables -I nixos-fw 1 -i br+ -j ACCEPT
";
extraStopCommands = "
iptables -D nixos-fw -i br+ -j ACCEPT
";
};
2026-03-24 20:39:25 +00:00
hosts = {
"127.0.0.1" = [
"localhost"
2026-03-25 20:58:46 +00:00
"host.docker.internal"
2026-03-24 21:37:51 +00:00
"runcats.test"
2026-03-24 20:39:25 +00:00
"dev.runcats.test"
"landing.runcats.test"
"api.runcats.test"
"mail.runcats.test"
"kibana.runcats.test"
"img.runcats.test"
"docs.runcats.test"
];
};
2026-03-09 20:27:18 +00:00
};
}