gytis-ivaskevicius / flake-utils-plus

Use Nix flakes without any fluff.
MIT License
485 stars 57 forks source link

How to use new flake overlays #123

Closed willruggiano closed 2 years ago

willruggiano commented 2 years ago

The new-ish way of defining overlays is like so;

{
   overlays.default = final: prev: {...};
}

but using overlaysBuilder (seemingly) doesn't make it easy to then use overlays defined this way.

channels.nixpkgs.overlaysBuilder = channels: [
  inputs.some-overlay.overlays.default  # doesn't work; no such attribute
];
willruggiano commented 2 years ago

Hmm. Seems that overlays.default is "system agnostic", so simply defining it outside of a eachDefaultSystem solves this.

eachDefaultSystem (system: { ... }) // {
  overlays.default = ...;
};
gytis-ivaskevicius commented 1 year ago

Yeah, sorry. Forgot to migrate to the new schema