about summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorRyan Burns <52847440+r-burns@users.noreply.github.com>2021-10-29 23:47:34 -0700
committerGitHub <noreply@github.com>2021-10-29 23:47:34 -0700
commit8793bbc759b5745c129ffe50a172873a87956704 (patch)
treebabd12204bd8bdf75fd1174b547483dedb572072 /nixos/doc
parent2ec0c698eaf3e7a4d13988538f08d65b3d006f40 (diff)
parente7898e1226ecf1107f7268674bc3f68af0f3f689 (diff)
Merge pull request #141557 from kvark/patch-1
Add command to switch to root to the installation guide
Diffstat (limited to 'nixos/doc')
-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 91ab716829770..db073fa839653 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 a0823b51e9cb0..def4f37fbcaa4 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