Files
nixos/hosts/homelab/network.nix
T
2026-10-01 13:59:54 +03:00

28 lines
439 B
Nix

{ config, ... }:
{
networking = {
hostName = "homelab";
firewall = {
allowedTCPPorts = [
22
80
443
2222
6969
]
++ [
config.selfhosted.mihomo.core.hostApiPort
]
++ config.selfhosted.mail.hostPorts;
allowedUDPPorts = [
3478
7359
];
};
};
boot.kernel.sysctl = {
"net.ipv4.ip_unprivileged_port_start" = 80;
};
}