From 4b0c763575e5d6d10afcc2f7c692c916747f487d Mon Sep 17 00:00:00 2001 From: Dennis Date: Sun, 22 Jun 2025 21:41:05 +0200 Subject: [PATCH] fixes restic config --- hosts/dnsc-server/default.nix | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/hosts/dnsc-server/default.nix b/hosts/dnsc-server/default.nix index 6aa02a4..117c273 100644 --- a/hosts/dnsc-server/default.nix +++ b/hosts/dnsc-server/default.nix @@ -175,17 +175,19 @@ # Backups services.restic.backups = { - initialize = true; - passwordFile = config.age.secrets."restic/password".path; - repository = "sftp:dnsc-storage:restic/dnsc-server"; - paths = [ - "/home/dennis/notes" - "/main/share" - ]; - timerConfig = { - onCalendar = "daily"; - Persistent = true; - RandomizedDelaySec = "5h"; + "dnsc-storage" = { + initialize = true; + passwordFile = config.age.secrets."restic/password".path; + repository = "sftp:dnsc-storage:restic/dnsc-server"; + paths = [ + "/home/dennis/notes" + "/main/share" + ]; + timerConfig = { + onCalendar = "daily"; + Persistent = true; + RandomizedDelaySec = "5h"; + }; }; };