Nixos-generate-config: Difference between revisions
imported>Chrissound Created page with "This command analyzes your hardware configuration and generates two files of: configuration.nix hardware-configuration.nix Notes: If you are using an SSD it may be useful to..." |
imported>Makefu cleanup |
||
Line 1: | Line 1: | ||
This command analyzes your hardware configuration and generates two files of: | This command analyzes your hardware configuration and generates two files of: | ||
configuration.nix | * <code>configuration.nix</code> | ||
hardware-configuration.nix | * <code>hardware-configuration.nix</code> | ||
== 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: | 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: | ||
<syntaxHighlight lang=nix> | |||
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ]; | fileSystems."/".options = [ "noatime" "nodiratime" "discard" ]; | ||
</syntaxHighlight> | |||
A collection of hardware specific platforms with their config can be found at [https://github.com/NixOS/nixos-hardware NixOS Hardware repository] |
Latest revision as of 11:39, 25 November 2018
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