flake-parts.easyOverlay
Derives a default overlay from perSystem.packages
.
Installation
To use these options, add inside the mkFlake
:
imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
Run nix flake lock
and you're set.
Options
perSystem
A function from system to flake-like attributes omitting the
<system>
attribute.
Modules defined here have access to the suboptions and some convenient module arguments.
Type: module
Declared by:
perSystem.overlayAttrs
Attributes to add to overlays.default
.
The overlays.default
overlay will re-evaluate
perSystem
with the “prev” (or “super”) overlay argument
value as the pkgs
module argument. The
easyOverlay
module also adds the final
module
argument, for the result of applying the overlay.
When not in an overlay, final
defaults to
pkgs
plus the generated overlay. This requires Nixpkgs to
be re-evaluated, which is more expensive than setting pkgs
to a Nixpkgs that already includes the necessary overlays that are
required for the flake itself.
See Overlays.
Type: lazy attribute set of raw value
Default: { }
Declared by: