From c9941c4b5ef7acc1cb8d734acb383410d99c01ba Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Wed, 19 Oct 2016 02:06:32 +0200 Subject: systemd.timers.startOn: automatically convert string to list --- nixos/modules/system/boot/systemd-unit-options.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix index 731b1701e00d..4c3fc30358c1 100644 --- a/nixos/modules/system/boot/systemd-unit-options.nix +++ b/nixos/modules/system/boot/systemd-unit-options.nix @@ -316,7 +316,7 @@ in rec { startAt = mkOption { type = with types; either str (listOf str); - default = ""; + default = []; example = "Sun 14:00:00"; description = '' Automatically start this unit at the given date/time, which @@ -326,6 +326,7 @@ in rec { to adding a corresponding timer unit with set to the value given here. ''; + apply = v: if isList v then v else [ v ]; }; }; -- cgit 1.4.1