How to upgrade my system to nixos-unstable?

How can I make sure that all the packages that I install when installing the nixos system (i.e. the packages listed in /etc/nixos/configuration.nixwhich I install using sudo nixos-rebuild switch) use the latest (unstable) version of nixos / nixpkgs?

+4
source share
2 answers

As explained in the upgrade guide section , if you run the following command as root:

nix-channel --list

you will most likely see something like the following (if, for example, you were following the 16.09 branch):

nixos https://nixos.org/channels/nixos-16.09

By issuing the following command (still as root):

nix-channel --add https://nixos.org/channels/nixos-unstable nixos

you remove the channel 16.09 and replace it with nixos-unstable.

. , :

nixos-rebuild switch --upgrade

, .

+8

:

sudo nix-channel --add https://nixos.org/channels/nixos-unstable
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable

, sudo: sudo, (.. , nix-env -i), .

+4

Source: https://habr.com/ru/post/1664218/


All Articles