Nixos-generate-config: Difference between revisions

Pigs (talk | contribs)
Includes usage and fill out details
Pigs (talk | contribs)
m change syntax highlighting to console
Line 7: Line 7:
= Usage =
= Usage =


<syntaxHighlight lang=bash>
<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="bash">
<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="bash">
<syntaxhighlight lang="console">
# nixos-generate-config --show-hardware-config
# nixos-generate-config --show-hardware-config
</syntaxhighlight>
</syntaxhighlight>