summary refs log tree commit diff
diff options
context:
space:
mode:
authorDzmitry Malyshau <kvark@fastmail.com>2021-10-13 15:41:50 -0400
committerDzmitry Malyshau <kvark@fastmail.com>2021-10-18 09:25:48 -0400
commite7898e1226ecf1107f7268674bc3f68af0f3f689 (patch)
tree4a69ffcc343ea4d418443882e53ae5971db99c10
parentaf764f652799e2f01383fe1a33935817e38eaa4e (diff)
downloadnixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.tar
nixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.tar.gz
nixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.tar.bz2
nixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.tar.lz
nixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.tar.xz
nixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.tar.zst
nixpkgs-e7898e1226ecf1107f7268674bc3f68af0f3f689.zip
Add command to switch to root
Installation guide assumed you are root but didn't explain how to get there. And it's not obvious.
-rw-r--r--nixos/doc/manual/from_md/installation/installing.chapter.xml5
-rw-r--r--nixos/doc/manual/installation/installing.chapter.md5
2 files changed, 8 insertions, 2 deletions
diff --git a/nixos/doc/manual/from_md/installation/installing.chapter.xml b/nixos/doc/manual/from_md/installation/installing.chapter.xml
index 91ab7168297..db073fa8396 100644
--- a/nixos/doc/manual/from_md/installation/installing.chapter.xml
+++ b/nixos/doc/manual/from_md/installation/installing.chapter.xml
@@ -25,8 +25,11 @@
     <para>
       You are logged-in automatically as <literal>nixos</literal>. The
       <literal>nixos</literal> user account has an empty password so you
-      can use <literal>sudo</literal> without a password.
+      can use <literal>sudo</literal> without a password:
     </para>
+    <programlisting>
+$ sudo -i
+</programlisting>
     <para>
       If you downloaded the graphical ISO image, you can run
       <literal>systemctl start display-manager</literal> to start the
diff --git a/nixos/doc/manual/installation/installing.chapter.md b/nixos/doc/manual/installation/installing.chapter.md
index a0823b51e9c..def4f37fbca 100644
--- a/nixos/doc/manual/installation/installing.chapter.md
+++ b/nixos/doc/manual/installation/installing.chapter.md
@@ -15,7 +15,10 @@ finished booting, it should have detected most of your hardware.
 The NixOS manual is available by running `nixos-help`.
 
 You are logged-in automatically as `nixos`. The `nixos` user account has
-an empty password so you can use `sudo` without a password.
+an empty password so you can use `sudo` without a password:
+```ShellSession
+$ sudo -i
+```
 
 If you downloaded the graphical ISO image, you can run `systemctl
 start display-manager` to start the desktop environment. If you want