mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
docs: replace use of #
by $ sudo
The hope is that this makes it more obvious that these commands should be run as the root user.
This commit is contained in:
parent
b92826d0c4
commit
9f7fe353b6
2 changed files with 8 additions and 8 deletions
|
@ -124,21 +124,21 @@ deployed through NixOps.
|
||||||
|
|
||||||
To make the NixOS module available for use you must `import` it into
|
To make the NixOS module available for use you must `import` it into
|
||||||
your system configuration. This is most conveniently done by adding a
|
your system configuration. This is most conveniently done by adding a
|
||||||
Home Manager channel. For example, if you are following Nixpkgs master
|
Home Manager channel to the root user. For example, if you are
|
||||||
or an unstable channel, you can run
|
following Nixpkgs master 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
|
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ sudo 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
|
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ sudo nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
It is then possible to add
|
It is then possible to add
|
||||||
|
@ -161,7 +161,7 @@ home-manager.users.eve = { pkgs, ... }: {
|
||||||
};
|
};
|
||||||
----
|
----
|
||||||
|
|
||||||
and after a `nixos-rebuild switch` the user eve's environment should
|
and after a `sudo nixos-rebuild switch` the user eve's environment should
|
||||||
include a basic Bash configuration and the packages atool and httpie.
|
include a basic Bash configuration and the packages atool and httpie.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</para>
|
</para>
|
||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
Commands prefixed with <literal>#</literal> have to be run as root, either
|
Commands prefixed with <literal>$ sudo</literal> have to be run as root, either
|
||||||
requiring to login as root user or temporarily switching to it using
|
requiring to login as root user or temporarily switching to it using
|
||||||
<literal>sudo</literal> for example.
|
<literal>sudo</literal> for example.
|
||||||
</para>
|
</para>
|
||||||
|
|
Loading…
Reference in a new issue