aboutsummaryrefslogtreecommitdiff
path: root/modules/profiles/wireguard/default.nix
blob: ef0a6b225f88c306918c60156212bd298b4af647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
let
  listenPort = 51820;
in
{
  networking = {
    firewall.allowedUDPPorts = [ listenPort ];
    wg-quick.interfaces.wg0 = {
      inherit listenPort;
      autostart = true;
      configFile = "/etc/wireguard/wg0.conf";
    };
  };
}