make schedule default

This commit is contained in:
Gregor Kleen 2023-05-07 16:37:07 +02:00
parent 2aab882f1e
commit d39df7274f

View File

@ -82,15 +82,14 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.k8s-gitlab-borg.config = { services.k8s-gitlab-borg.config = mkDefault ({
k8s-gitlab-borg.timezone = mkIf (config.time.timeZone != null) config.time.timeZone; keep.within = "15min";
keep."4h".count = 6;
keep.daily.count = 7;
keep.within = "15min"; copy.daily.count = 1;
keep."4h".count = 6; }
keep.daily.count = 7; // optionalAttrs (config.time.timeZone != null) {k8s-gitlab-borg.timezone = config.time.timeZone;});
copy.daily.count = 1;
};
systemd.services."k8s-gitlab-borg" = { systemd.services."k8s-gitlab-borg" = {
description = "Copy GitLab backups to borg"; description = "Copy GitLab backups to borg";