about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-05-15 07:37:51 -0600
committerGitHub <noreply@github.com>2023-05-15 07:37:51 -0600
commitdde3cb6977d1ad70feb5652e1b410816314a5ed6 (patch)
treeeaeae1998b60b4701cd5cb4cf8f0faa82413d3bd /nixos
parent89d1baa08bd35ac01c1372672cdea92bf932d578 (diff)
parent95e1099d2a042ed6d4c23ae3bd46317e0d28c5c5 (diff)
Merge pull request #232007 from Janik-Haag/restic
restic: add persistent default for timer unit
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/backup/restic.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix
index 8cc0c084d659f..3a951f7cbc834 100644
--- a/nixos/modules/services/backup/restic.nix
+++ b/nixos/modules/services/backup/restic.nix
@@ -145,6 +145,7 @@ in
           type = types.attrsOf unitOption;
           default = {
             OnCalendar = "daily";
+            Persistent = true;
           };
           description = lib.mdDoc ''
             When to run the backup. See {manpage}`systemd.timer(5)` for details.
@@ -152,6 +153,7 @@ in
           example = {
             OnCalendar = "00:05";
             RandomizedDelaySec = "5h";
+            Persistent = true;
           };
         };