diff --git a/system/services/syncthing/default.nix b/system/services/syncthing/default.nix index 3516a0f..09116dc 100644 --- a/system/services/syncthing/default.nix +++ b/system/services/syncthing/default.nix @@ -6,8 +6,27 @@ services.syncthing = { enable = true; guiAddress = "localhost:8384"; + user = "synchronous"; + group = "users"; + dataDir = "/home/synchronous"; # user = "synchronous"; # group = "syncthing"; openDefaultPorts = true; + + settings = { + devices = { + cluster = {id = "RBT7JA4-DFQ33SG-JUWJOQ2-MLPVLV4-SL2NATS-VZBB5M5-L7CHO3N-UTBOGA4";}; + }; + folders = { + notes = { + id = "notes"; + label = "Notes"; + path = "/home/synchronous/notes"; + type = "sendreceive"; + + devices = ["cluster"]; + }; + }; + }; }; }