From 26dd4e51600878583abd3023a5a1bf95533c3c97 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 4 Mar 2019 11:02:50 +0800 Subject: [PATCH] manual: document how to switch to nixpkgs release --- doc/manual/installing.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/manual/installing.rst b/doc/manual/installing.rst index 2fc0f64d2..2efc15f54 100644 --- a/doc/manual/installing.rst +++ b/doc/manual/installing.rst @@ -20,9 +20,15 @@ Once Nix is installed, add the M-Labs package channels with: :: nix-channel --add https://nixbld.m-labs.hk/channel/custom/artiq/main/channel m-labs nix-channel --add https://nixbld.m-labs.hk/channel/custom/artiq/sinara-systems/channel sinara - nix-channel --update -Those channels track `nixpkgs 18.09 `_. You can check the latest status through the `Hydra interface `_. +Those channels track `nixpkgs 18.09 `_. You can check the latest status through the `Hydra interface `_. As the Nix package manager default installation uses the development version of nixpkgs, we need to tell it to switch to the release: :: + + nix-channel --remove nixpkgs + nix-channel --add https://nixos.org/channels/nixos-18.09 nixpkgs + +Finally, make all the channel changes effective: :: + + nix-channel --update Nix won't install packages without verifying their cryptographic signature. Add the M-Labs public key by creating the file ``~/.config/nix/nix.conf`` with the following contents: