blob: 8c25d7af122e388cff94e36acfb4a6fc68e6aabb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ ... }:
let
port = 51820;
in
{
networking = {
firewall.allowedUDPPorts = [ port ];
wg-quick.interfaces.wg0 = {
autostart = true;
listenPort = port;
configFile = "/etc/wireguard/wg0.conf";
};
};
}
|