diff --git a/services/syncthing.nix b/services/syncthing.nix index d4efa86..b4b6a07 100644 --- a/services/syncthing.nix +++ b/services/syncthing.nix @@ -15,6 +15,18 @@ dataDir = config.users.users.${config.services.syncthing.user}.home; settings = { + defaults.ignores = [ + "/Projects/Programming" + ]; + + options = { + urAccepted = -1; + localAnnounceEnabled = false; + globalAnnounceEnabled = false; + natEnabled = false; + relaysEnabled = false; + }; + devices = pkgs.lib.mkMerge [ { "syncthing" = { @@ -31,10 +43,6 @@ id = "S4ZORDV-QBY7QC7-FQHADMZ-NQSKJUA-7B7LQNS-CWJLSMG-JPMN7YJ-OVRDZQA"; addresses = [ "tcp://lithium.vsinerva.fi:22000" ]; }; - "phone" = { - id = "K6QCK2R-BU65RAC-PHTGLIA-24IHDXE-N6VNBAW-QYREMVD-XWGWKRA-VX2BNAK"; - addresses = [ "tcp://phone.vsinerva.fi:22000" ]; - }; }) ]; @@ -46,7 +54,6 @@ (pkgs.lib.mkIf (config.networking.hostName == "syncthing") [ "helium" "lithium" - "phone" ]) ]; versioning = { @@ -55,34 +62,17 @@ }; fsWatcherDelayS = 1; }; - default-no-phone = default // { - devices = pkgs.lib.mkMerge [ - [ "syncthing" ] - (pkgs.lib.mkIf (config.networking.hostName == "syncthing") [ - "helium" - "lithium" - ]) - ]; - }; in { "~/Documents" = default; - "~/Downloads" = default-no-phone; - "~/Music" = default-no-phone; + "~/Downloads" = default; + "~/Music" = default; "~/Pictures" = default; - "~/Projects" = default-no-phone; + "~/Projects" = default; "~/School" = default; - "~/Videos" = default-no-phone; + "~/Videos" = default; "~/Zotero" = default; }; - - options = { - urAccepted = -1; - localAnnounceEnabled = false; - globalAnnounceEnabled = false; - natEnabled = false; - relaysEnabled = false; - }; }; #TCP/UDP 22000 for transfers and UDP 21027 for discovery