commit a8b834939e3709d0dbca1bb8bde5c6c2139cc41d parent d681f357799e4058b3f20187445b4944b7dc0f8b Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 13 May 2024 16:20:49 +0200 services.syncthing: use settings Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | systems/modules/services/syncthing.nix | | | 64 | +++++++++++++++++++++++++++++++++------------------------------- |
1 file changed, 33 insertions(+), 31 deletions(-)
diff --git a/systems/modules/services/syncthing.nix b/systems/modules/services/syncthing.nix @@ -56,37 +56,39 @@ in dataDir = "/home/vincent/.syncthing"; configDir = "/home/vincent/.syncthing"; guiAddress = cfg.guiAddress; - devices = filterAttrs isCurrentHost devices; - folders = { - "/home/vincent/sync" = { - label = "sync"; - id = "7dshg-r8zr6"; - devices = deviceNames; - }; - "/home/vincent/desktop/notes" = { - label = "notes"; - id = "q2eld-jylbu"; - devices = deviceNames; - }; - "/home/vincent/desktop/org" = { - label = "org"; - id = "sjpsr-xfwdu"; - devices = deviceNames; - }; - "/home/vincent/desktop/documents" = { - label = "documents"; - id = "oftdb-t5anv"; - devices = deviceNames; - }; - "/home/vincent/desktop/pictures/screenshots" = { - label = "screenshots"; - id = "prpsz-azlz9"; - devices = deviceNames; - }; - "/home/vincent/desktop/pictures/wallpapers" = { - label = "wallpapers"; - id = "wpiah-ydwwx"; - devices = deviceNames; + settings = { + devices = filterAttrs isCurrentHost devices; + folders = { + "/home/vincent/sync" = { + label = "sync"; + id = "7dshg-r8zr6"; + devices = deviceNames; + }; + "/home/vincent/desktop/notes" = { + label = "notes"; + id = "q2eld-jylbu"; + devices = deviceNames; + }; + "/home/vincent/desktop/org" = { + label = "org"; + id = "sjpsr-xfwdu"; + devices = deviceNames; + }; + "/home/vincent/desktop/documents" = { + label = "documents"; + id = "oftdb-t5anv"; + devices = deviceNames; + }; + "/home/vincent/desktop/pictures/screenshots" = { + label = "screenshots"; + id = "prpsz-azlz9"; + devices = deviceNames; + }; + "/home/vincent/desktop/pictures/wallpapers" = { + label = "wallpapers"; + id = "wpiah-ydwwx"; + devices = deviceNames; + }; }; }; }