{ config, pkgs, ...}: let in { networking.firewall = { allowedUDPPorts = [ 53 ]; allowedTCPPorts = [ 53 ]; }; networking.wg-quick.interfaces."protonvpn" = { autostart = false; privateKeyFile = "/home/nixolas/.passfiles/protonvpn"; address = [ "10.2.0.2/32" ]; listenPort = 51820; peers = [ { publicKey = "yB6ySO0kjqbgVWanDYKDgWoAMwM3X//nBiKXwaqmiwU="; allowedIPs = [ "0.0.0.0/0" "::/0" ]; endpoint = "89.187.180.55:51820"; } ]; # This allows the wireguard server to route your traffic to the internet and hence be like a VPN postUp = '' ${pkgs.nftables}/bin/nft -f - <