NixOS/extra/wireguard.nix

16 lines
346 B
Nix
Raw Normal View History

2023-11-18 10:33:43 +00:00
{ 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"
];
}