From dbddf6f454835a7fd703ba5628e003fd6b18f6a5 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:59:29 +0100 Subject: [PATCH] finish server setup --- modules/misc/backup.nix | 6 +++++- modules/services/caldav.nix | 3 +-- systems/amd-server-vm/configuration.nix | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/misc/backup.nix b/modules/misc/backup.nix index 2634353..24b4d5d 100644 --- a/modules/misc/backup.nix +++ b/modules/misc/backup.nix @@ -77,6 +77,10 @@ in mkIf cfg.enable { passwordFile = config.age.secrets.restic-pw.path; exclude = cfg.excludePaths; paths = cfg.large; + timerConfig = { + OnCalendar = "04:00"; + Persistent = true; + }; pruneOpts = [ "--keep-daily 7" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; repository = "/1tbssd/restic"; }; @@ -113,7 +117,7 @@ in mkIf cfg.enable { paths = cfg.small; pruneOpts = [ "--keep-daily 5" "--keep-weekly 3" "--keep-monthly 3" "--keep-yearly 3" ]; timerConfig = { - OnCalendar = "*-*-03,06,09,12,15,18,21,24,27,30 00:00:00"; + OnCalendar = "*-*-03,06,09,12,15,18,21,24,27,30 02:00:00"; Persistent = true; }; repository = "s3:s3.us-west-002.backblazeb2.com/kop-bucket"; diff --git a/modules/services/caldav.nix b/modules/services/caldav.nix index af0aeab..fdc2a4a 100644 --- a/modules/services/caldav.nix +++ b/modules/services/caldav.nix @@ -29,8 +29,7 @@ in { }; systemd.services.kop-fhcalendar = let - radicale = builtins.elemAt - config.services.radicale.settings.storage.filesystem_folder 0; + radicale = config.services.radicale.settings.storage.filesystem_folder; # not reproducible working = "${radicale}/collection-root/kopatz/b6d2c446-8109-714a-397f-1f35d3136639"; diff --git a/systems/amd-server-vm/configuration.nix b/systems/amd-server-vm/configuration.nix index 975f610..44fa05d 100644 --- a/systems/amd-server-vm/configuration.nix +++ b/systems/amd-server-vm/configuration.nix @@ -63,7 +63,7 @@ acme.enable = true; gitolite.enable = true; github-runner.enable = true; - #caldav.enable = true; + caldav.enable = true; kop-monitor.enable = true; kop-fileshare = { basePath = "/stash";