1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +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:
DrRuhe 2022-09-08 11:17:36 +02:00 committed by Robert Helgesson
parent b92826d0c4
commit 9f7fe353b6
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 8 additions and 8 deletions

View file

@ -124,21 +124,21 @@ deployed through NixOps.
To make the NixOS module available for use you must `import` it into
your system configuration. This is most conveniently done by adding a
Home Manager channel. For example, if you are following Nixpkgs master
or an unstable channel, you can run
Home Manager channel to the root user. For example, if you are
following Nixpkgs master 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
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
$ sudo 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
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz home-manager
$ sudo nix-channel --update
----
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.
[NOTE]

View file

@ -24,7 +24,7 @@
</para>
<note>
<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
<literal>sudo</literal> for example.
</para>