Difference between revisions of "Nixos-generate-config"

From NixOS Wiki
Jump to: navigation, search
(Add warning about the new wiki)
m (rollback unauthorized mass edits)
Tag: Rollback
 
Line 1: Line 1:
{{warning|1=You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Nixos-generate-config.}}
 
 
 
This command analyzes your hardware configuration and generates two files of:
 
This command analyzes your hardware configuration and generates two files of:
 
* <code>configuration.nix</code>
 
* <code>configuration.nix</code>

Latest revision as of 10:58, 6 April 2024

This command analyzes your hardware configuration and generates two files of:

  • configuration.nix
  • hardware-configuration.nix

hardware specific notes

If you are using an SSD it may be useful to enable TRIM support as well as set filesystem flags to improve the SSD performance:

fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];

A collection of hardware specific platforms with their config can be found at NixOS Hardware repository