Files
nixos/system/networking.nix
T

80 lines
2.1 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;
2026-07-01 21:19:17 +01:00
networkmanager.wifi.backend = "iwd";
networkmanager.ensureProfiles.profiles = {
"Outskirt Stable" = {
connection = {
id = "Outskirt Stable";
type = "wifi";
};
wifi = {
ssid = "Outskirt Stable";
mode = "infrastructure";
};
wifi-security = {
key-mgmt = "wpa-psk";
psk = "SidonPhlegm";
};
2026-03-09 20:27:18 +00:00
};
};
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
2026-04-21 20:37:25 +01:00
2049
111
2026-03-25 21:14:36 +00:00
];
allowedUDPPorts = [
53317
8001
8002
8003
8004
2026-04-21 20:37:25 +01:00
2049
111
2026-03-25 21:14:36 +00:00
];
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-06-10 20:17:30 +01:00
"192.168.2.158" = [
"comms.scarif.space"
"droid.scarif.space"
"holocron.scarif.space"
"labs.scarif.space"
"library.scarif.space"
"net.scarif.space"
"office.scarif.space"
"radio.scarif.space"
"rec.scarif.space"
"scarif.space"
];
2026-03-24 20:39:25 +00:00
};
2026-03-09 20:27:18 +00:00
};
}