all repos — nixfiles @ c910fc503263109cfe9483a0f1682dde48b852e1

System and user configuration, managed by nix and home-manager

nix: auto-update unstable packages in configuration
Alan Pearce alan@alanpearce.eu
Tue, 07 May 2019 17:15:39 +0200
commit

c910fc503263109cfe9483a0f1682dde48b852e1

parent

53ff00ce12bc69e3b15eec3b70ca9ee555decb0c

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M modules/configuration/nix.nixmodules/configuration/nix.nix
@@ -27,7 +27,8 @@ flags = [ "--max-jobs" "2" ];   };
   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}
     '';
   };
 }