From ab052cd45d7914a376700700b5b3b380559650aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 25 Jan 2024 08:21:35 +0200 Subject: [PATCH] syncthing: bind to 127.0.0.1 --- modules/services/syncthing/default.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix index 2e0fc0a..bf94f02 100644 --- a/modules/services/syncthing/default.nix +++ b/modules/services/syncthing/default.nix @@ -6,7 +6,6 @@ }: let cfg = config.mj.services.syncthing; - guiPort = 8384; devices = { "mtwork".id = "3XRWDGO-M42WJAK-MGR24VJ-B5TNQXH-7R5YNFI-MAGXALL-XFENVI4-XYDPMAM"; "fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6"; @@ -123,13 +122,7 @@ in { services.syncthing = { inherit (cfg) enable user group dataDir; - openDefaultPorts = true; - guiAddress = let - fqdn = with config.networking; "${hostName}.${domain}"; - jakstIP = lib.getAttrFromPath [fqdn "jakstIP"] myData.hosts; - guiPortStr = builtins.toString guiPort; - in "${jakstIP}:${guiPortStr}"; settings = { gui.insecureAdminAccess = true;