From c910fc503263109cfe9483a0f1682dde48b852e1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 7 May 2019 17:15:39 +0200 Subject: nix: auto-update unstable packages in configuration --- modules/configuration/nix.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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} ''; }; } -- cgit 1.4.1