NixOS: Difference between revisions

imported>Makefu
No edit summary
imported>Makefu
No edit summary
Line 175: Line 175:
see also: [[Nix vs. Linux Standard Base]]
see also: [[Nix vs. Linux Standard Base]]


=== Usage of the Nix Store ==
=== Usage of the Nix Store ===
A lot of confusion for newcomers arises from the fact that configuration is stored in the read-only nix store along with all the installed packages. This fact makes it impossible to manually edit system configuration, all configuration changes must be performed by editing the **/etc/nixos/configuration.nix** file. NixOS provides the Modules System for editing all required configurations. Users should first check if an option for the configuration they require already exist before manually adding files or configuration via low-level NixOS features like activation scripts.
A lot of confusion for newcomers arises from the fact that configuration is stored in the read-only nix store along with all the installed packages. This fact makes it impossible to manually edit system configuration, all configuration changes must be performed by editing the **/etc/nixos/configuration.nix** file. NixOS provides the Modules System for editing all required configurations. Users should first check if an option for the configuration they require already exist before manually adding files or configuration via low-level NixOS features like activation scripts.