mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
fix: hcloud remove
This commit is contained in:
parent
a6e8ddeee8
commit
5d5855de92
3 changed files with 17 additions and 15 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue