diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index d89ea1ae..bf8b5690 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -31,70 +31,70 @@ in { guiAddress = "0.0.0.0:${toString port}"; overrideDevices = false; overrideFolders = false; - # settings = { - # devices = { - # niks.id = "ZXGYWRF-THUTZFB-UUSUNFJ-6O4SP5X-WZH5DOJ-YC25NHH-EC55CIH-V7ZKFQG"; - # # del.id = ""; - # # chmura.id = ""; - # }; - # folders = { - # Projects = { - # path = "${homeDirectory}/Projects"; - # devices = [ "niks" /*"del" "chmura"*/ ]; - # versioning = { - # type = "staggered"; - # params = { - # cleanInterval = "3600"; - # maxAge = "15552000"; - # }; - # }; - # }; - # Studia = { - # path = "${homeDirectory}/Studia"; - # devices = [ "niks" /*"del" "chmura"*/ ]; - # versioning = { - # type = "staggered"; - # params = { - # cleanInterval = "3600"; - # maxAge = "15552000"; - # }; - # }; - # }; - # KeepassXC = { - # path = "${homeDirectory}/KeepassXC"; - # devices = [ "niks" /*"del" "chmura"*/ ]; - # versioning = { - # type = "staggered"; - # params = { - # cleanInterval = "3600"; - # maxAge = "15552000"; - # }; - # }; - # }; - # Notes = { - # path = "${homeDirectory}/Notes"; - # devices = [ "niks" /*"del" "chmura"*/ ]; - # versioning = { - # type = "staggered"; - # params = { - # cleanInterval = "3600"; - # maxAge = "15552000"; - # }; - # }; - # }; - # mieszkanie = { - # path = "${homeDirectory}/mieszkanie"; - # devices = [ "niks" /*"del" "chmura"*/ ]; - # versioning = { - # type = "staggered"; - # params = { - # cleanInterval = "3600"; - # maxAge = "15552000"; - # }; - # }; - # }; - # }; - # } // cfg.extraSettings; + settings = { + devices = { + niks.id = "ZXGYWRF-THUTZFB-UUSUNFJ-6O4SP5X-WZH5DOJ-YC25NHH-EC55CIH-V7ZKFQG"; + del.id = ""; + chmura.id = "TJCCHXS-HA5ZXUI-NKXWICR-4ADPHCA-TVRNDBN-54E622Z-TUAAVOM-YIJHWAI"; + }; + folders = { + Projects = { + path = "${homeDirectory}/Projects"; + devices = [ "niks" "del" "chmura" ]; + versioning = { + type = "staggered"; + params = { + cleanInterval = "3600"; + maxAge = "15552000"; + }; + }; + }; + Studia = { + path = "${homeDirectory}/Studia"; + devices = [ "niks" "del" "chmura" ]; + versioning = { + type = "staggered"; + params = { + cleanInterval = "3600"; + maxAge = "15552000"; + }; + }; + }; + KeepassXC = { + path = "${homeDirectory}/KeepassXC"; + devices = [ "niks" "del" "chmura" ]; + versioning = { + type = "staggered"; + params = { + cleanInterval = "3600"; + maxAge = "15552000"; + }; + }; + }; + Notes = { + path = "${homeDirectory}/Notes"; + devices = [ "niks" "del" "chmura" ]; + versioning = { + type = "staggered"; + params = { + cleanInterval = "3600"; + maxAge = "15552000"; + }; + }; + }; + mieszkanie = { + path = "${homeDirectory}/mieszkanie"; + devices = [ "niks" "del" "chmura" ]; + versioning = { + type = "staggered"; + params = { + cleanInterval = "3600"; + maxAge = "15552000"; + }; + }; + }; + }; + } // cfg.extraSettings; }; services.caddy = mkIf (username == "chmura") { virtualHosts."sync.jacekpoz.pl".extraConfig = ''