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
This commit is contained in:
parent
1de492f6f8
commit
a0e7ffe7aa
|
@ -143,8 +143,8 @@ You can add the `nixpkgs-unstable` channel by running
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
Note, the package will not be affected by any package overrides, overlays, etc.
|
Note, the package will not be affected by any package overrides, overlays, etc.
|
||||||
|
|
|
@ -132,16 +132,16 @@ or an unstable channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
and if you follow a Nixpkgs version 22.05 channel, you can run
|
and if you follow a Nixpkgs version 22.05 channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
It is then possible to add
|
It is then possible to add
|
||||||
|
@ -243,16 +243,16 @@ or an unstable channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
and if you follow a Nixpkgs version 22.05 channel, you can run
|
and if you follow a Nixpkgs version 22.05 channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
It is then possible to add
|
It is then possible to add
|
||||||
|
|
Loading…
Reference in a new issue