diff --git a/docs/installation.adoc b/docs/installation.adoc index 49ea358e..1862f616 100644 --- a/docs/installation.adoc +++ b/docs/installation.adoc @@ -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] diff --git a/docs/manual.xml b/docs/manual.xml index 375a9694..b159940c 100644 --- a/docs/manual.xml +++ b/docs/manual.xml @@ -24,7 +24,7 @@ - Commands prefixed with # have to be run as root, either + Commands prefixed with $ sudo have to be run as root, either requiring to login as root user or temporarily switching to it using sudo for example.