From 5f15710becb43aa534f82f14c4f35c88d2bdc23f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 26 Jan 2020 14:33:50 +1300 Subject: [PATCH] syncthing: rescanInterval is 8 hours on media, to avoid starting the hard drive when not needed --- configs/porani/syncthing.nix | 5 +++++ configs/workhorse/syncthing.nix | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/configs/porani/syncthing.nix b/configs/porani/syncthing.nix index 0e72eff..8acabdf 100644 --- a/configs/porani/syncthing.nix +++ b/configs/porani/syncthing.nix @@ -45,22 +45,27 @@ movies = { enable = true; path = "/media/movies"; + rescanInterval = 8 * 3600; }; music-library = { enable = true; path = "/media/music-library"; + rescanInterval = 8 * 3600; }; podcasts = { enable = true; path = "/media/podcasts"; + rescanInterval = 8 * 3600; }; series = { enable = true; path = "/media/series"; + rescanInterval = 8 * 3600; }; smartphone-music = { enable = true; path = "/media/smartphone-music"; + rescanInterval = 8 * 3600; }; }; }; diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index fdff0cf..c27f3e8 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -68,26 +68,32 @@ music-library-free = { enable = true; path = "/media/syncthing/music-library-free"; + rescanInterval = 8 * 3600; }; samples = { enable = true; path = "/media/syncthing/samples"; + rescanInterval = 8 * 3600; }; movies = { enable = true; path = "/media/syncthing/movies"; + rescanInterval = 8 * 3600; }; music-library = { enable = true; path = "/media/syncthing/music-library"; + rescanInterval = 8 * 3600; }; podcasts = { enable = true; path = "/media/syncthing/podcasts"; + rescanInterval = 8 * 3600; }; series = { enable = true; path = "/media/syncthing/series"; + rescanInterval = 8 * 3600; }; };