Overlays: Difference between revisions
imported>Samueldr Adds code to use nixos configured overlays as <nixpkgs-overlays>. |
imported>Samueldr m Fixes + <ref> |
||
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 < | ===== Using <tt>nixpkgs.overlays</tt> as <tt><nixpkgs-overlays></tt> ===== | ||
In <tt>configuration.nix</tt>, add to <code>nix.nixPath</code>. | In <tt>configuration.nix</tt>, add to <code>nix.nixPath</code>. | ||
Line 49: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
And, add the file <tt>/etc/nixos/overlays-compat/ | And, add the file <tt>/etc/nixos/overlays-compat/overlays.nix</tt><ref>[https://gitlab.com/samueldr/nixos-configuration/blob/3febd83b15210282d6435932944d426cd0a9e0ca/modules/overlays-compat/overlays.nix [[User:samueldr|@samueldr]]'s configuration: overlays-compat]</ref>: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 70: | Line 70: | ||
* [https://nixos.org/nixpkgs/manual/#chap-overlays Overlays in nixpkgs manual] | * [https://nixos.org/nixpkgs/manual/#chap-overlays Overlays in nixpkgs manual] | ||
* [https://blog.flyingcircus.io/2017/11/07/nixos-the-dos-and-donts-of-nixpkgs-overlays/ Blog post "The DOs and DON’Ts of nixpkgs overlays"] | * [https://blog.flyingcircus.io/2017/11/07/nixos-the-dos-and-donts-of-nixpkgs-overlays/ Blog post "The DOs and DON’Ts of nixpkgs overlays"] | ||
<references /> |