How to use new flake overlays
willruggiano opened this issue · 2 comments
willruggiano commented
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
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
Yeah, sorry. Forgot to migrate to the new schema