From 3f33751dcb0cafb273eb868f230b1ae348437f89 Mon Sep 17 00:00:00 2001 From: tdback Date: Sun, 26 Jan 2025 11:32:37 -0500 Subject: profiles: cleaned up profiles, removed obsolete --- modules/profiles/wireguard/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/profiles/wireguard') diff --git a/modules/profiles/wireguard/default.nix b/modules/profiles/wireguard/default.nix index 8c25d7a..ef0a6b2 100644 --- a/modules/profiles/wireguard/default.nix +++ b/modules/profiles/wireguard/default.nix @@ -1,14 +1,12 @@ -{ ... }: let - port = 51820; + listenPort = 51820; in { networking = { - firewall.allowedUDPPorts = [ port ]; - + firewall.allowedUDPPorts = [ listenPort ]; wg-quick.interfaces.wg0 = { + inherit listenPort; autostart = true; - listenPort = port; configFile = "/etc/wireguard/wg0.conf"; }; }; -- cgit v1.2.3