nixos/syncoid: allow interval to be list of strings (#344355)

authored by

Sandro and committed by
GitHub
483845fc 3252508f

+6 -3
+6 -3
nixos/modules/services/backup/syncoid.nix
··· 106 106 package = lib.mkPackageOption pkgs "sanoid" { }; 107 107 108 108 interval = lib.mkOption { 109 - type = lib.types.str; 109 + type = with lib.types; either str (listOf str); 110 110 default = "hourly"; 111 111 example = "*-*-* *:15:00"; 112 112 description = '' 113 113 Run syncoid at this interval. The default is to run hourly. 114 114 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. 117 120 ''; 118 121 }; 119 122