diff options
author | Alan Pearce | 2019-05-07 17:15:39 +0200 |
---|---|---|
committer | Alan Pearce | 2019-05-07 17:15:39 +0200 |
commit | c910fc503263109cfe9483a0f1682dde48b852e1 (patch) | |
tree | 91c2be0e9a79aa3bec24017b8b0d3c0682bd4f7c /modules/configuration | |
parent | 53ff00ce12bc69e3b15eec3b70ca9ee555decb0c (diff) | |
download | nixos-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.nix | 3 |
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} ''; }; } |