Skip to content

Commit 483845f

Browse files
nixos/syncoid: allow interval to be list of strings (NixOS#344355)
2 parents 3252508 + 71967c4 commit 483845f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nixos/modules/services/backup/syncoid.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,17 @@ in
106106
package = lib.mkPackageOption pkgs "sanoid" { };
107107

108108
interval = lib.mkOption {
109-
type = lib.types.str;
109+
type = with lib.types; either str (listOf str);
110110
default = "hourly";
111111
example = "*-*-* *:15:00";
112112
description = ''
113113
Run syncoid at this interval. The default is to run hourly.
114114
115-
The format is described in
116-
{manpage}`systemd.time(7)`.
115+
Must be in the format described in {manpage}`systemd.time(7)`. This is
116+
equivalent to adding a corresponding timer unit with
117+
{option}`OnCalendar` set to the value given here.
118+
119+
Set to an empty list to avoid starting syncoid automatically.
117120
'';
118121
};
119122

0 commit comments

Comments
 (0)