From d39df7274f6b504751ce2007e2cb46b8b96b4f48 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 7 May 2023 16:37:07 +0200 Subject: [PATCH] make schedule default --- k8s-gitlab-borg.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/k8s-gitlab-borg.nix b/k8s-gitlab-borg.nix index 18c482d..1615e79 100644 --- a/k8s-gitlab-borg.nix +++ b/k8s-gitlab-borg.nix @@ -82,15 +82,14 @@ in { }; config = mkIf cfg.enable { - services.k8s-gitlab-borg.config = { - k8s-gitlab-borg.timezone = mkIf (config.time.timeZone != null) config.time.timeZone; + services.k8s-gitlab-borg.config = mkDefault ({ + keep.within = "15min"; + keep."4h".count = 6; + keep.daily.count = 7; - keep.within = "15min"; - keep."4h".count = 6; - keep.daily.count = 7; - - copy.daily.count = 1; - }; + copy.daily.count = 1; + } + // optionalAttrs (config.time.timeZone != null) {k8s-gitlab-borg.timezone = config.time.timeZone;}); systemd.services."k8s-gitlab-borg" = { description = "Copy GitLab backups to borg";