Files
nixos/hosts/homelab/network.nix
T
2026-06-30 04:26:40 +03:00

15 lines
260 B
Nix

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