summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/configuration/nix.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/configuration/nix.nix b/modules/configuration/nix.nix
index 75c3486..1a06430 100644
--- a/modules/configuration/nix.nix
+++ b/modules/configuration/nix.nix
@@ -27,7 +27,8 @@
   };
   systemd.services.nixos-upgrade = {
     script = pkgs.lib.mkForce ''
-      ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot ${toString config.system.autoUpgrade.flags}
+      ${pkgs.nix}/bin/nix-channel --update nixos-unstable
+      ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --upgrade ${toString config.system.autoUpgrade.flags}
     '';
   };
 }