summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorAlexander Ried <ried@mytum.de>2016-10-19 02:06:32 +0200
committerAlexander Ried <ried@mytum.de>2016-10-19 02:22:12 +0200
commitc9941c4b5ef7acc1cb8d734acb383410d99c01ba (patch)
tree3dad9c9ff348b4796b3e0d56c46d1646c9f1fbec /nixos/modules/system
parentba42683e9afd8f3195d2c9659bb5f9f368ea0560 (diff)
downloadnixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.tar
nixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.tar.gz
nixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.tar.bz2
nixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.tar.lz
nixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.tar.xz
nixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.tar.zst
nixlib-c9941c4b5ef7acc1cb8d734acb383410d99c01ba.zip
systemd.timers.startOn: automatically convert string to list
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix3
1 files changed, 2 insertions, 1 deletions
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
         <option>OnCalendar</option> set to the value given here.
       '';
+      apply = v: if isList v then v else [ v ];
     };
 
   };