diff --git a/applications/gitlab.nix b/applications/gitlab.nix index 5d05f09..5275f64 100644 --- a/applications/gitlab.nix +++ b/applications/gitlab.nix @@ -6,6 +6,7 @@ }: with lib; let cfg = config.services.skynet_gitlab; + backup_path = "/etc/skynet/backups/gitlab"; domain_base = "${cfg.domain.base}.${cfg.domain.tld}"; domain_full = "${cfg.domain.sub}.${domain_base}"; @@ -179,7 +180,7 @@ in { }; services.skynet_backup.normal.backups = [ - "/etc/skynet/backups/gitlab" + backup_path ]; services.gitlab = { @@ -220,7 +221,7 @@ in { # see https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/gitlab.nix#L295 backup = { startAt = "Sat *-*-* 04:00:00"; # Sat 4am weekly - path = "/etc/skynet/backups/gitlab"; # Has to be same as line 182 + path = backup_path; # Has to be same as line 182 keepTime = 24; # (Hours) Backups are uploaded to seperate server skip = ["builds" "artifacts" "registry" "packages" "terraform_state"]; # see https://docs.gitlab.com/ee/administration/backup_restore/backup_gitlab.html#excluding-specific-data-from-the-backup };