fix: variables are cool

This commit is contained in:
daragh 2024-03-25 12:13:09 +00:00
parent fb4685797b
commit 292c977ec1
No known key found for this signature in database

View file

@ -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
};