aboutsummaryrefslogtreecommitdiff
path: root/modules/profiles/wireguard
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profiles/wireguard')
-rw-r--r--modules/profiles/wireguard/default.nix8
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";
};
};