NixOS/extra/wireguard.nix

16 lines
346 B
Nix

{ pkgs, config, ... }: {
networking.wireguard.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
networking.firewall.allowedUDPPorts = [
51820 # wireguard client
];
boot.kernelModules = [
"wireguard"
];
}