From 76c07129f33e4ba570fa93b034ec16a47be5bd63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 14 Sep 2023 14:51:36 +0300 Subject: [PATCH] re-add () --- data.nix | 1 + modules/services/tailscale/default.nix | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/data.nix b/data.nix index 1abd885..1fb35b4 100644 --- a/data.nix +++ b/data.nix @@ -28,6 +28,7 @@ rec { vaultwarden = 8222; kodi = 8080; prometheus = 9001; + tailscale = 41641; exporters.node = 9002; # non-configurable in caddy as of 2023-09-06 diff --git a/modules/services/tailscale/default.nix b/modules/services/tailscale/default.nix index c1d0350..b44a870 100644 --- a/modules/services/tailscale/default.nix +++ b/modules/services/tailscale/default.nix @@ -15,12 +15,12 @@ }; config = with config.mj.services.tailscale; - lib.mkIf enable ({ + lib.mkIf enable { services.tailscale.enable = true; networking.firewall.checkReversePath = "loose"; - networking.firewall.allowedUDPPorts = [41641]; - #} - #// lib.mkIf silenceLogs { - # systemd.services.tailscaled.serviceConfig."StandardOutput" = "null"; - }); + networking.firewall.allowedUDPPorts = [myData.ports.tailscale]; + #} + #// lib.mkIf silenceLogs { + # systemd.services.tailscaled.serviceConfig."StandardOutput" = "null"; + }; }