summary refs log tree commit diff
path: root/nixos/modules/installer/tools/auto-upgrade.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/installer/tools/auto-upgrade.nix')
-rw-r--r--nixos/modules/installer/tools/auto-upgrade.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/auto-upgrade.nix b/nixos/modules/installer/tools/auto-upgrade.nix
index b21b80c666aa..dfb43d1a1db9 100644
--- a/nixos/modules/installer/tools/auto-upgrade.nix
+++ b/nixos/modules/installer/tools/auto-upgrade.nix
@@ -84,7 +84,7 @@ let cfg = config.system.autoUpgrade; in
         ${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}
       '';
 
-      startAt = optionalString cfg.enable cfg.dates;
+      startAt = optional cfg.enable cfg.dates;
     };
 
   };