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 611b8c4472
(#161034). Now, the command should be called without any arguments.
This commit is contained in:
@@ -211,7 +211,7 @@ $ sudo groupdel nixbld
|
|||||||
Generate your NixOS configuration:
|
Generate your NixOS configuration:
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
$ sudo `which nixos-generate-config` --root /
|
$ sudo `which nixos-generate-config`
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
Note that this will place the generated configuration files in
|
Note that this will place the generated configuration files in
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ The first steps to all these are the same:
|
|||||||
Generate your NixOS configuration:
|
Generate your NixOS configuration:
|
||||||
|
|
||||||
```ShellSession
|
```ShellSession
|
||||||
$ sudo `which nixos-generate-config` --root /
|
$ sudo `which nixos-generate-config`
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that this will place the generated configuration files in
|
Note that this will place the generated configuration files in
|
||||||
|
|||||||
Reference in New Issue
Block a user