Overlays: Difference between revisions

imported>Samueldr
m Adds defaults to Using <tt>nixpkgs.overlays</tt> as <tt><nixpkgs-overlays></tt>
imported>Samueldr
m Adds a disambiguation paragraph →‎Using nixpkgs.overlays as
Line 39: Line 39:
There is a configuration option <code>nixpkgs.overlays</code>. Overlays set here will '''not''' be automatically applied by nix tools.
There is a configuration option <code>nixpkgs.overlays</code>. Overlays set here will '''not''' be automatically applied by nix tools.


===== Using <tt>nixpkgs.overlays</tt> as <tt><nixpkgs-overlays></tt> =====
===== Using <tt>nixpkgs.overlays</tt> from <tt>configuration.nix</tt> as <tt><nixpkgs-overlays></tt> in your NIX_PATH =====
 
This will allow all the Nix tools to see the exact same overlay as is defined in your <tt>configuration.nix</tt> in the {{nixos:option|nixpkgs.overlays}} option.


In <tt>configuration.nix</tt>, depending on whether your <tt>configuration.nix</tt> already defines <code>nix.nixPath</code>, add one of those definitions:
In <tt>configuration.nix</tt>, depending on whether your <tt>configuration.nix</tt> already defines <code>nix.nixPath</code>, add one of those definitions: