diff --git a/modules/networking/wireguard/client.nix b/modules/networking/wireguard/client.nix index fa7d295..0d7b559 100644 --- a/modules/networking/wireguard/client.nix +++ b/modules/networking/wireguard/client.nix @@ -8,11 +8,6 @@ in { options.networking.wg.client = { enable = lib.mkEnableOption "Enable WireGuard client"; - port = lib.mkOption { - type = lib.types.port; - default = 51820; - description = "Port for WireGuard client"; - }; autoConnect = lib.mkOption { type = lib.types.bool; default = false; @@ -25,11 +20,9 @@ in { }; config = lib.mkIf cfg.enable { - networking.firewall.allowedUDPPorts = [cfg.port]; networking.wg-quick.interfaces.wg0 = { inherit (peers.jonas) address; inherit (cfg) privateKeyFile; - listenPort = cfg.port; autostart = cfg.autoConnect; peers = [ peers.harbor