feat: last bits of server setup

This commit is contained in:
Nickolaj Jepsen 2025-04-23 00:02:00 +02:00
parent 9ef90f8dba
commit db85aeb044
12 changed files with 157 additions and 24 deletions

View file

@ -10,10 +10,19 @@
age.secrets.restic-password.rekeyFile = ../../secrets/hosts/homelab/restic-password.age;
age.secrets.restic-env.rekeyFile = ../../secrets/hosts/homelab/restic-env.age;
services.restic.backups.server = {
services.restic.backups.homelab = {
repository = "b2:fireproof-backup";
timerConfig = null;
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
passwordFile = "${config.age.secrets.restic-password.path}";
environmentFile = "${config.age.secrets.restic-env.path}";
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"
"--keep-yearly 75"
];
};
}