-
|
Hi, How to add custom package sets (just like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
It's somewhat of an unanswered question in terms of the de facto schema, but I would probably re-expose some of the top level module arguments like { lib, flake-parts-lib, getSystem, ... }:
{
flake.lib.getSystem = getSystem;
}also we should have a similar one that sets flake-parts/extras/easyOverlay.nix Lines 53 to 57 in 52a2cae Not sure what to call it. Independent of all that, we should also have an opt-in |
Beta Was this translation helpful? Give feedback.
The
packagesare meant to be a flat set of packages according tonix flake checkand some other sources. Not much we can do about that.legacyPackagesdoesn't have any restrictions like that, so you could use that attribute instead.Turns out
bundlerswas already a thing; just didn't make it onto the docs site. fixed. It's probably not right for arbitrary builders though.So flakes does not have great answers for this out of the box.
You could however create your own
flake.liband refer to thegetSystem/withSystemmodule arguments for constructing system-dependent stuff inside of it.Perhaps something like this: