Nix (package manager): Difference between revisions

imported>Mic92
No edit summary
imported>Inquisitiv3
mNo edit summary
Line 10: Line 10:
=== Declarative Configuration ===
=== Declarative Configuration ===


Support for declarative configuration in Nix is limited, and the solutions are somewhat fragmented. The only only configuration file officially associated with Nix is <code>nix.conf</code> (usually found in <code>/etc/nix/</code>), which defines a number of settings relating to how Nix, including build, garbage collection, sandboxing, and user permissions. Details on the available options are found in the [https://nixos.org/nix/manual/#sec-conf-file|nix.conf section of the manual]. Since most scenarios involve using [[Nixpkgs]], configuration of <code>~/.config/nixpkgs/config.nix</code> is often also helpful; here package overrides can be specified.  
Support for declarative configuration in Nix is limited, and the solutions are somewhat fragmented. The only configuration file officially associated with Nix is <code>nix.conf</code> (usually found in <code>/etc/nix/</code>), which defines a number of settings relating to how Nix, including build, garbage collection, sandboxing, and user permissions. Details on the available options are found in the [https://nixos.org/nix/manual/#sec-conf-file|nix.conf section of the manual]. Since most scenarios involve using [[Nixpkgs]], configuration of <code>~/.config/nixpkgs/config.nix</code> is often also helpful; here package overrides can be specified.  


Work on Nix user profiles is well underway, see {{pull|9250|PR 9250}}.
Work on Nix user profiles is well underway, see {{pull|9250|PR 9250}}.