From 5907f14e9140d0204a8971e1ad92935d07c8ac41 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 18 Feb 2021 04:22:30 +0100 Subject: [PATCH] syncthing: fixing books --- configs/pepe/syncthing.nix | 1 + configs/sterni/syncthing.nix | 2 +- configs/workhorse/syncthing.nix | 6 ++++++ system/all/syncthing.nix | 4 ++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configs/pepe/syncthing.nix b/configs/pepe/syncthing.nix index 60a1156..822ebc2 100644 --- a/configs/pepe/syncthing.nix +++ b/configs/pepe/syncthing.nix @@ -9,6 +9,7 @@ music = config.services.syncthing.declarative.folders.music-library.path; samples = config.services.syncthing.declarative.folders.samples.path; series = config.services.syncthing.declarative.folders.series.path; + books = config.services.syncthing.declarative.folders.books.path; }; private.test = { folder = config.services.syncthing.declarative.folders.porn.path; diff --git a/configs/sterni/syncthing.nix b/configs/sterni/syncthing.nix index a10cd84..e05318f 100644 --- a/configs/sterni/syncthing.nix +++ b/configs/sterni/syncthing.nix @@ -45,7 +45,7 @@ # no need to be encrypted # ----------------------- - book = { + books = { enable = true; path = "/home/palo/books"; }; diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index 71aa869..d8aa490 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -7,6 +7,7 @@ series = config.services.syncthing.declarative.folders.series.path; samples = config.services.syncthing.declarative.folders.samples.path; music = config.services.syncthing.declarative.folders.music-library.path; + books = config.services.syncthing.declarative.folders.books.path; }; }; @@ -64,6 +65,11 @@ path = "/media/syncthing/music-library-free"; rescanInterval = 8 * 3600; }; + books = { + enable = true; + path = "/media/syncthing/books"; + rescanInterval = 8 * 3600; + }; porn = { enable = true; path = "/media/syncthing/porn"; diff --git a/system/all/syncthing.nix b/system/all/syncthing.nix index fea010a..4fb5b5b 100644 --- a/system/all/syncthing.nix +++ b/system/all/syncthing.nix @@ -109,11 +109,11 @@ with lib; { # no need to be stored on encrypted drives # ---------------------------------------- - book = { + books = { enable = lib.mkDefault false; id = "wwbvs-5lfbh"; watch = false; - devices = [ "workout" "pepe" "sterni" ]; + devices = [ "workhorse" "pepe" "sterni" ]; versioning = { type = "simple"; params.keep = "10";