nix-config/modules/wireguard/default.nix

16 lines
234 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ ... }:
let
port = 51820;
in
{
networking = {
firewall.allowedUDPPorts = [ port ];
wg-quick.interfaces.wg0 = {
autostart = true;
listenPort = port;
configFile = "/etc/wireguard/wg0.conf";
};
};
}