eve-psr-nix0/nix/system/network.nix

16 lines
329 B
Nix
Raw Normal View History

2023-09-11 19:52:03 -05:00
{ ... }: {
networking = {
hostName = "eve-psr-nix0";
firewall = {
allowedTCPPorts = [ 22 80 443 ];
allowedUDPPorts = [ 22 80 443 53 1194 ];
trustedInterfaces = [ "tun0" ];
};
nat = {
enable = true;
externalInterface = "enp1s0";
internalInterfaces = [ "tun0" ];
};
};
}