diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-10-30 10:26:09 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2025-03-14 00:55:50 +0100 |
commit | f1d05e52d9c52b9e9ecb0e76d81e2c0e4645dd9c (patch) | |
tree | 4e8ad2b999e7c9fbadcffe5047a7ed383ae27364 /flakes/private | |
parent | 3695009c683596c1e8edd05fa68777de9eaa4c7f (diff) | |
download | Nix-f1d05e52d9c52b9e9ecb0e76d81e2c0e4645dd9c.tar.gz Nix-f1d05e52d9c52b9e9ecb0e76d81e2c0e4645dd9c.tar.zst Nix-f1d05e52d9c52b9e9ecb0e76d81e2c0e4645dd9c.zip |
Configure borg backup for zoldene
Diffstat (limited to 'flakes/private')
-rw-r--r-- | flakes/private/borg_backup/flake.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/flakes/private/borg_backup/flake.nix b/flakes/private/borg_backup/flake.nix index ad7d6eb..ab288f6 100644 --- a/flakes/private/borg_backup/flake.nix +++ b/flakes/private/borg_backup/flake.nix | |||
@@ -130,6 +130,13 @@ | |||
130 | Whether to enable remote backups. | 130 | Whether to enable remote backups. |
131 | ''; | 131 | ''; |
132 | }; | 132 | }; |
133 | services.borgBackup.cronSpec = lib.mkOption { | ||
134 | type = lib.types.str; | ||
135 | default = "0 0 * * *"; | ||
136 | description = '' | ||
137 | Cron spec for running borgbackup | ||
138 | ''; | ||
139 | }; | ||
133 | services.borgBackup.helpers = lib.mkOption { | 140 | services.borgBackup.helpers = lib.mkOption { |
134 | readOnly = true; | 141 | readOnly = true; |
135 | description = '' | 142 | description = '' |
@@ -310,7 +317,7 @@ | |||
310 | services.cron = { | 317 | services.cron = { |
311 | enable = true; | 318 | enable = true; |
312 | systemCronJobs = [ | 319 | systemCronJobs = [ |
313 | "0 0 * * * root ${borg_backup}/bin/borg_backup 300" | 320 | "${config.services.borgBackup.cronSpec} root ${borg_backup}/bin/borg_backup 300" |
314 | ]; | 321 | ]; |
315 | 322 | ||
316 | }; | 323 | }; |