From 47e9a0e662fc304f882ec29c49acb9d0a1bdbb3b Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 30 Aug 2020 23:43:04 +0200 Subject: [PATCH] update: post fixes --- configs/workhorse/mattermost.nix | 2 ++ configs/workhorse/syncthing.nix | 33 ++++++++++++++++++++---- configs/workhorse/transmission.nix | 2 ++ configs/workout/syncthing.nix | 40 ++++++++++++++++++++++++------ 4 files changed, 64 insertions(+), 13 deletions(-) diff --git a/configs/workhorse/mattermost.nix b/configs/workhorse/mattermost.nix index 63711e0..fd154d2 100644 --- a/configs/workhorse/mattermost.nix +++ b/configs/workhorse/mattermost.nix @@ -97,6 +97,8 @@ in { services.SystemdJournal2Gelf.enable = true; services.SystemdJournal2Gelf.graylogServer = "${hostAddress}:11201"; + services.journald.extraConfig = ''SystemMaxUse=1G''; + }; }; diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index cd56a5c..780ef64 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -48,6 +48,10 @@ fotos = { enable = true; path = "/home/syncthing/fotos"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; lost-fotos = { enable = true; @@ -60,6 +64,10 @@ zettlr = { enable = true; path = "/home/syncthing/zettlr"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; # on media hard drive (not encrypted) @@ -82,31 +90,46 @@ enable = true; path = "/media/syncthing/samples"; rescanInterval = 8 * 3600; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; movies = { enable = true; path = "/media/syncthing/movies"; rescanInterval = 8 * 3600; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; music-library = { enable = true; path = "/media/syncthing/music-library"; rescanInterval = 8 * 3600; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; series = { enable = true; path = "/media/syncthing/series"; rescanInterval = 8 * 3600; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; smartphone-folder = { enable = true; path = "/media/syncthing/smartphone-folder"; rescanInterval = 8 * 3600; - }; - workhorse-sterni = { - enable = true; - path = "/media/syncthing/sync-to-sterni"; - rescanInterval = 8 * 3600; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; }; diff --git a/configs/workhorse/transmission.nix b/configs/workhorse/transmission.nix index 0519f36..6bc6f67 100644 --- a/configs/workhorse/transmission.nix +++ b/configs/workhorse/transmission.nix @@ -47,6 +47,8 @@ in { services.SystemdJournal2Gelf.enable = true; services.SystemdJournal2Gelf.graylogServer = "${hostAddress}:11201"; + services.journald.extraConfig = ''SystemMaxUse=1G''; + services.transmission = { enable = true; settings = { diff --git a/configs/workout/syncthing.nix b/configs/workout/syncthing.nix index 8d4f812..3e286da 100644 --- a/configs/workout/syncthing.nix +++ b/configs/workout/syncthing.nix @@ -34,6 +34,10 @@ fotos = { enable = true; path = "/home/palo/fotos"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; # no need to be encrypted @@ -41,34 +45,50 @@ book = { enable = true; path = "/home/palo/books"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; music-library-free = { enable = true; path = "/home/palo/music-library-free"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; music-library = { enable = true; path = "/home/palo/music-library"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; music-projects = { enable = true; path = "/home/palo/music-projects"; - }; - porani-workout = { - enable = true; - path = "/home/palo/workout-porani"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; samples = { enable = true; path = "/home/palo/samples"; + versioning = { + type = "simple"; + params.keep = "2"; + }; }; video-material = { enable = true; path = "/home/palo/video-material"; - }; - workout-pepe = { - enable = true; - path = "/home/palo/workout-pepe"; + versioning = { + type = "simple"; + params.keep = "2"; + }; }; windows-sync = { enable = true; @@ -81,6 +101,10 @@ zettlr = { enable = true; path = "/home/palo/zettlr"; + versioning = { + type = "simple"; + params.keep = "10"; + }; }; }; };