28 lines
439 B
Nix
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;
|
|
};
|
|
}
|