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 b2676b05a02c..e14653dc4eb0 100644
--- a/nixos/modules/installer/tools/auto-upgrade.nix
+++ b/nixos/modules/installer/tools/auto-upgrade.nix
@@ -70,7 +70,7 @@ let cfg = config.system.autoUpgrade; in
       path = [ pkgs.gnutar pkgs.xz config.nix.package ];
 
       script = ''
-        ${config.system.build.nixos-rebuild}/bin/nixos-rebuild test ${toString cfg.flags}
+        ${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}
       '';
 
       startAt = mkIf cfg.enable "04:40";