diff options
author | tdback <tyler@tdback.net> | 2025-01-26 11:32:37 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-26 11:32:37 -0500 |
commit | 3f33751dcb0cafb273eb868f230b1ae348437f89 (patch) | |
tree | c1c9d6f80532c8ff892efdd14c9f4a6e8bf43a14 /modules/profiles/wireguard | |
parent | 1b40ddcb978dec8cf52a82319f1f8b4e4eedd3f8 (diff) |
profiles: cleaned up profiles, removed obsolete
Diffstat (limited to 'modules/profiles/wireguard')
-rw-r--r-- | modules/profiles/wireguard/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
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"; }; }; |