nixfiles/hosts/hermes/networking.nix
2024-08-30 13:15:37 +01:00

21 lines
405 B
Nix

{
config,
lib,
pkgs,
...
}: {
networking.hostName = "hermes";
networking = {
enableIPv6 = false;
firewall.allowedTCPPorts = [80 443 8265];
firewall.checkReversePath = false;
iproute2.enable = true;
iproute2.rttablesExtraConfig = ''
200 vpn
'';
wg-quick.interfaces.wg1 = {
configFile = config.age.secrets.wg-conf.path;
table = "vpn";
};
};
}