nix: auto-update unstable packages in configuration
Alan Pearce alan@alanpearce.eu
Tue, 07 May 2019 17:15:39 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
M modules/configuration/nix.nix → modules/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} ''; }; }