8 lines
196 B
Nix
8 lines
196 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
configPath = "/etc/wireguard/wg0.conf";
|
|
in
|
|
{
|
|
networking.firewall = { allowedUDPPorts = [ 51820 ]; };
|
|
networking.wg-quick.interfaces.wg0.configFile = configPath;
|
|
}
|