summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/configuration/nix.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix
index ff7ef82e..85e14e2c 100644
--- a/system/settings/configuration/nix.nix
+++ b/system/settings/configuration/nix.nix
@@ -21,7 +21,8 @@
   };
   systemd.services.nixos-upgrade = {
     script = pkgs.lib.mkForce ''
-      ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output --upgrade ${toString config.system.autoUpgrade.flags}
+      ${pkgs.nix}/bin/nix-channel --update
+      ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output ${toString config.system.autoUpgrade.flags}
     '';
   };
 }