systemd.timers.startOn: automatically convert string to list
This commit is contained in:
parent
ba42683e9a
commit
c9941c4b5e
@ -316,7 +316,7 @@ in rec {
|
|||||||
|
|
||||||
startAt = mkOption {
|
startAt = mkOption {
|
||||||
type = with types; either str (listOf str);
|
type = with types; either str (listOf str);
|
||||||
default = "";
|
default = [];
|
||||||
example = "Sun 14:00:00";
|
example = "Sun 14:00:00";
|
||||||
description = ''
|
description = ''
|
||||||
Automatically start this unit at the given date/time, which
|
Automatically start this unit at the given date/time, which
|
||||||
@ -326,6 +326,7 @@ in rec {
|
|||||||
to adding a corresponding timer unit with
|
to adding a corresponding timer unit with
|
||||||
<option>OnCalendar</option> set to the value given here.
|
<option>OnCalendar</option> set to the value given here.
|
||||||
'';
|
'';
|
||||||
|
apply = v: if isList v then v else [ v ];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user