systemd-unit-options: startAt can be a list

OnCalendar entrys can be specified multiple times in a systemd timer, to
make more complex scheduling possible.

Tested by manually checking the timer generated by the following:

systemd = {
services.huhu = {
description = "meh";
wantedBy = [ "default.target" ];
serviceConfig.ExecStart = "/bin/sh -c 'printf HUHU!'";
startAt = [ "*:*:0/30" "*:0/1:15" ];
};
};

It prints HUHU to the log at seconds 0, 15 and 30 of each minute.

Changed files
+1 -1
nixos
modules
+1 -1
nixos/modules/system/boot/systemd-unit-options.nix
···
};
startAt = mkOption {
-
type = types.str;
default = "";
example = "Sun 14:00:00";
description = ''
···
};
startAt = mkOption {
+
type = with types; either str (listOf str);
default = "";
example = "Sun 14:00:00";
description = ''