git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/postgresqlBackup: allow defining multiple times to start at

Or … none! Because forcing a string always results in an OnCalender= setting, but an empty string leads to an empty value. > postgresqlBackup-hass.timer: Timer unit lacks value setting. Refusing. or > postgresqlBackup-miniflux.timer: Cannot add dependency job, ignoring: Unit postgresqlBackup-miniflux.timer has a bad unit file setting. I require the postgresqlBackup in my borgbackup unit, so I don't strictly need the timer and could previously set it to an empty list.

commit21746a7c80619f72c8197486940fc60183602656 authorMartin Weinelt <hexa@darmstadt.ccc.de> dateFri 14 May 2021, 18:14 (6 years ago) parent2f06be9
1 file changed+1−1
nixos/modules/services/backup/postgresql-backup.nix+1−1
nixos/modules/services/backup/postgresql-backup.nix+1−1
@@ -48,7 +48,7 @@ in {
4848
4949 startAt = mkOption {
5050 default = "*-*-* 01:15:00";
51− type = types.str;
51+ type = with types; either (listOf str) str;
5252 description = ''
5353 This option defines (see <literal>systemd.time</literal> for format) when the
5454 databases should be dumped.