From a0e7ffe7aa6c37b33b80fa7ac03a5327b81bd8d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Wed, 15 Jun 2022 11:14:19 +0200 Subject: [PATCH] docs: use `$` prompts for nix-channel commands Channels should be added for the normal user, not for root, because the home-manager configuration is not supposed to be evaluated as root. Fixes https://github.com/nix-community/home-manager/issues/2985 --- docs/faq.adoc | 4 ++-- docs/installation.adoc | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/faq.adoc b/docs/faq.adoc index 935317e7..64886880 100644 --- a/docs/faq.adoc +++ b/docs/faq.adoc @@ -143,8 +143,8 @@ You can add the `nixpkgs-unstable` channel by running [source,console] ---- -# nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable -# nix-channel --update +$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable +$ nix-channel --update ---- Note, the package will not be affected by any package overrides, overlays, etc. diff --git a/docs/installation.adoc b/docs/installation.adoc index f35fcf64..f49eb13a 100644 --- a/docs/installation.adoc +++ b/docs/installation.adoc @@ -132,16 +132,16 @@ or an unstable channel, you can run [source,console] ---- -# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager -# nix-channel --update +$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager +$ nix-channel --update ---- and if you follow a Nixpkgs version 22.05 channel, you can run [source,console] ---- -# nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager -# nix-channel --update +$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager +$ nix-channel --update ---- It is then possible to add @@ -243,16 +243,16 @@ or an unstable channel, you can run [source,console] ---- -# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager -# nix-channel --update +$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager +$ nix-channel --update ---- and if you follow a Nixpkgs version 22.05 channel, you can run [source,console] ---- -# nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager -# nix-channel --update +$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager +$ nix-channel --update ---- It is then possible to add