blob: 4e046041c85b17e52d210d149a782f2ad38416ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# modules/profiles/wireguard/default.nix
#
# Although my current ISP doesn't plague me with CGNAT, I use IPv6rs with
# wireguard to host services from home without exposing ports on my router's
# firewall.
let
listenPort = 51820;
in
{
networking = {
firewall.allowedUDPPorts = [ listenPort ];
wg-quick.interfaces.wg0 = {
inherit listenPort;
autostart = true;
configFile = "/etc/wireguard/wg0.conf";
};
};
}
|