From 52fe1d28471d19436d6c69cf7d72fab7fb551684 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 1 Dec 2024 01:56:00 +0100 Subject: [PATCH] feat: add games and books rsync target --- hosts/nihilus/default.nix | 12 +++++++++++- options/fixes/rsyncd.nix | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hosts/nihilus/default.nix b/hosts/nihilus/default.nix index bf5cf2b..8ce7ef9 100644 --- a/hosts/nihilus/default.nix +++ b/hosts/nihilus/default.nix @@ -47,7 +47,17 @@ } { name = "movies"; - comment = "backup location for movies shows"; + comment = "backup location for movies and shows"; + mode = "write"; + } + { + name = "books"; + comment = "backup location for books"; + mode = "write"; + } + { + name = "games"; + comment = "backup location for games"; mode = "write"; } ]; diff --git a/options/fixes/rsyncd.nix b/options/fixes/rsyncd.nix index 902f67d..afc0d19 100644 --- a/options/fixes/rsyncd.nix +++ b/options/fixes/rsyncd.nix @@ -82,7 +82,8 @@ in serviceConfig = serviceConfigSecurity // { ExecStart = "${pkgs.rsync}/bin/rsync --daemon --no-detach --config=${configFile}"; - RestartSec = 1; + RestartSec = 15; + Restart = "always"; }; wantedBy = [ "multi-user.target" ];