Nixos-generate-config: Difference between revisions
Includes usage and fill out details |
m change syntax highlighting to console |
||
| Line 7: | Line 7: | ||
= Usage = | = Usage = | ||
<syntaxHighlight lang= | <syntaxHighlight lang=console> | ||
# nixos-generate-config | # nixos-generate-config | ||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 17: | Line 17: | ||
To generate configuration files with a specific root directory (commonly used during installation): | To generate configuration files with a specific root directory (commonly used during installation): | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
# nixos-generate-config --root /mnt | # nixos-generate-config --root /mnt | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 27: | Line 27: | ||
To print the detected hardware configuration to standard output without writing to disk: | To print the detected hardware configuration to standard output without writing to disk: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
# nixos-generate-config --show-hardware-config | # nixos-generate-config --show-hardware-config | ||
</syntaxhighlight> | </syntaxhighlight> | ||