Closed jorsn closed 5 months ago
channels
argument is omitted since it is super easy to get infinite recursion happening that way. Unless you have some solid implementation idea I suggest configuring overlays per channel in this case
PS: don't forget that you can use let
block to avoid code duplication
Hi, thanks for this project!
I wanted to resort to a default package from the
default
channel, if some predicate on the channel is satisfied. Using thechannels
argument to mkFlake, it is only possible to select the channels by name, while the functionsharedOverlays
doesn't have thechannels
argument ofoverlaysBuilder
, so I didn't know how to access the default channel.Wouldn't it be more consistent and more flexible to add the
channels
argument to sharedOverlays, and letting it appear as just anotheroverlaysBuilder
to the user?The solution I used is to specify channels by name (https://github.com/jorsn/ancienTeX.nix/blob/707118d0f2202b016dcdcd5cff4e74877db0986b/flake.nix#L82), but I'd like to have it based on a predicate.