From 0a43fe729596cd7b41f06f760f36913455628fb4 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 26 Oct 2023 17:56:47 +0100 Subject: [PATCH] Remove setting devices for folders in expression --- services/syncthing/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/services/syncthing/default.nix b/services/syncthing/default.nix index b184a7a6..0d5de562 100644 --- a/services/syncthing/default.nix +++ b/services/syncthing/default.nix @@ -1,6 +1,6 @@ { config, lib, pkgs, user, ... }: -let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Vanguard" ]; -in { + +{ imports = [ ../traefik/syncthing.nix ]; services.syncthing = { enable = true; @@ -10,25 +10,21 @@ in { openDefaultPorts = true; settings.folders = { "Documents" = { - inherit devices; id = "gvggx-6telk"; path = "~/Documents"; ignorePerms = true; }; "Music" = { - inherit devices; id = "munzw-vnxhl"; path = "~/Music"; ignorePerms = true; }; "Pictures" = { - inherit devices; id = "ziuj8-rm6dn"; path = "~/Pictures"; ignorePerms = true; }; "Videos" = { - inherit devices; id = "mbsop-qteua"; path = "~/Videos"; ignorePerms = true;