about summary refs log tree commit diff
path: root/nixos/doc/manual
diff options
context:
space:
mode:
authorMichal Sojka <michal.sojka@cvut.cz>2022-11-13 22:11:19 +0100
committerMichal Sojka <michal.sojka@cvut.cz>2022-11-13 22:11:19 +0100
commitee8ae2da4c3fe46c5aa40a80185861db9d45ba5c (patch)
treecc5a1426884a4f8f9e4f7aa3fb9daabbd0adff54 /nixos/doc/manual
parentdcb2ea2fc5a12971e336a0fb167069a15a1bc288 (diff)
nixos/doc: fix installing from other distro
The nixos-generate-config command mentioned in the manual fails with error:

    nixos-generate-config: no need to specify `/` with `--root`, it is the default

This was introduced in 611b8c4472db0bde066b97960ccfe4671ffb89fb
(#161034). Now, the command should be called without any arguments.
Diffstat (limited to 'nixos/doc/manual')
-rw-r--r--nixos/doc/manual/from_md/installation/installing-from-other-distro.section.xml2
-rw-r--r--nixos/doc/manual/installation/installing-from-other-distro.section.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/doc/manual/from_md/installation/installing-from-other-distro.section.xml b/nixos/doc/manual/from_md/installation/installing-from-other-distro.section.xml
index 024a24379dd6d..35309a7aa3266 100644
--- a/nixos/doc/manual/from_md/installation/installing-from-other-distro.section.xml
+++ b/nixos/doc/manual/from_md/installation/installing-from-other-distro.section.xml
@@ -211,7 +211,7 @@ $ sudo groupdel nixbld
         Generate your NixOS configuration:
       </para>
       <programlisting>
-$ sudo `which nixos-generate-config` --root /
+$ sudo `which nixos-generate-config`
 </programlisting>
       <para>
         Note that this will place the generated configuration files in
diff --git a/nixos/doc/manual/installation/installing-from-other-distro.section.md b/nixos/doc/manual/installation/installing-from-other-distro.section.md
index fa8806f791d52..b9ccf1415179e 100644
--- a/nixos/doc/manual/installation/installing-from-other-distro.section.md
+++ b/nixos/doc/manual/installation/installing-from-other-distro.section.md
@@ -148,7 +148,7 @@ The first steps to all these are the same:
     Generate your NixOS configuration:
 
     ```ShellSession
-    $ sudo `which nixos-generate-config` --root /
+    $ sudo `which nixos-generate-config`
     ```
 
     Note that this will place the generated configuration files in