From bcd777d4255c3acde0796bb5d3ea2fb4999607d2 Mon Sep 17 00:00:00 2001 From: schweby Date: Wed, 27 Jan 2021 11:38:52 +0100 Subject: [PATCH] hainich/syncthing:added schwebys Laptop and hacc folder --- hosts/hainich/services/syncthing.nix | 31 +++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/hosts/hainich/services/syncthing.nix b/hosts/hainich/services/syncthing.nix index 4ac3110..72382e9 100644 --- a/hosts/hainich/services/syncthing.nix +++ b/hosts/hainich/services/syncthing.nix @@ -1,9 +1,30 @@ { config, lib, pkgs, ... }: { -services.syncthing = { - enable = true; - relay.enable = false; - openDefaultPorts = true; - guiAddress = "127.0.0.1:8384"; + services.syncthing = { + enable = true; + relay.enable = false; + openDefaultPorts = true; + declarative = { + devices = { + txsbcct = { + addresses = []; # empty = dynamic + id = "A6SRBZL-CP627PX-4QA55B7-QKJXOMO-UJDXQIV-77OK57V-RXO3CUQ-JIHX7AC"; + }; + }; + + folders = { + "/var/lib/syncthing/hacc" = { + id = "qt2ly-xvvvs"; + devices = [ "txsbcct" ]; + type = "receiveonly"; + versioning = { + type = "simple"; + params.keep = "10"; + }; + }; + }; + + }; + }; }