git.iko.soy/typeable/nixpkgs
on master help sign in
systemd.timers.startOn: automatically convert string to list
commitc9941c4b5ef7acc1cb8d734acb383410d99c01ba authorAlexander Ried <ried@mytum.de> dateWed 19 Oct 2016, 02:06 (10 years ago) parentba42683
1 file changed+2−1
nixos/modules/system/boot/systemd-unit-options.nix+2−1
nixos/modules/system/boot/systemd-unit-options.nix+2−1
@@ -316,7 +316,7 @@ in rec {
316316
317317 startAt = mkOption {
318318 type = with types; either str (listOf str);
319− default = "";
319+ default = [];
320320 example = "Sun 14:00:00";
321321 description = ''
322322 Automatically start this unit at the given date/time, which
@@ -326,6 +326,7 @@ in rec {
326326 to adding a corresponding timer unit with
327327 <option>OnCalendar</option> set to the value given here.
328328 '';
329+ apply = v: if isList v then v else [ v ];
329330 };
330331
331332 };