16 lines
234 B
Nix
16 lines
234 B
Nix
|
{ ... }:
|
||
|
let
|
||
|
port = 51820;
|
||
|
in
|
||
|
{
|
||
|
networking = {
|
||
|
firewall.allowedUDPPorts = [ port ];
|
||
|
|
||
|
wg-quick.interfaces.wg0 = {
|
||
|
autostart = true;
|
||
|
listenPort = port;
|
||
|
configFile = "/etc/wireguard/wg0.conf";
|
||
|
};
|
||
|
};
|
||
|
}
|