summary refs log tree commit diff stats
path: root/modules/configuration
diff options
context:
space:
mode:
authorAlan Pearce2019-05-07 17:15:39 +0200
committerAlan Pearce2019-05-07 17:15:39 +0200
commitc910fc503263109cfe9483a0f1682dde48b852e1 (patch)
tree91c2be0e9a79aa3bec24017b8b0d3c0682bd4f7c /modules/configuration
parent53ff00ce12bc69e3b15eec3b70ca9ee555decb0c (diff)
downloadnixos-configuration-c910fc503263109cfe9483a0f1682dde48b852e1.tar.lz
nixos-configuration-c910fc503263109cfe9483a0f1682dde48b852e1.tar.zst
nixos-configuration-c910fc503263109cfe9483a0f1682dde48b852e1.zip
nix: auto-update unstable packages in configuration
Diffstat (limited to 'modules/configuration')
-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}
     '';
   };
 }