fix: hcloud remove

This commit is contained in:
Kat Inskip 2025-06-24 17:32:01 -07:00
parent a6e8ddeee8
commit 5d5855de92
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 17 additions and 15 deletions

View file

@ -1,6 +1,11 @@
{config, ...}: {
sops.secrets.restic-password-file = {
sopsFile = ./restic.yaml;
sops.secrets = {
restic-ssh-keyfile = {
sopsFile = ./restic.yaml;
};
restic-password-file = {
sopsFile = ./restic.yaml;
};
};
services.restic.backups = {
${config.networking.hostName} = {
@ -11,7 +16,7 @@
exclude = [
];
extraOptions = [
"sftp.command='ssh u401227@u401227.your-storagebox.de -i /home/kat/.ssh/id_ed25519 -s sftp'"
"sftp.command='ssh u401227@u401227.your-storagebox.de -i ${config.sops.secrets.restic-ssh-keyfile.path} -s sftp'"
];
pruneOpts = [
"--keep-daily 7"
@ -22,8 +27,8 @@
passwordFile = config.sops.secrets.restic-password-file.path;
repository = "sftp:u401227@u401227.your-storagebox.de:/restic/${config.networking.hostName}";
timerConfig = {
OnCalendar = "00:05";
RandomizedDelaySec = "5h";
OnCalendar = "12:00";
RandomizedDelaySec = "2h";
};
};
};