blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

Support changing a loader for specific folders

Open Lyndeno opened this issue 10 months ago • 3 comments

Is your feature request related to a problem? Please describe.

My existing config is very similar to how blueprint is laid out, except for each host and module folder are loaded with haumea, such that the folder structure reflects the attributes.

Describe the solution you'd like

It would be interesting to have some setting where we can define logic for importing the folders, for example, for hosts, I would want haumea to be applied to each individual host folder, then I do not have to write the import function for every host or module I want to import in that way.

Describe alternatives you've considered

I have used my own custom alf-baked codebase for this kind of host and module management solution: multinix, but it is very half baked.

Additional context

Lyndeno avatar Feb 27 '25 18:02 Lyndeno

Ok. At some point I want to break up lib/default.nix to make it more extensible, but right now it's not possible. blueprint is erring on the side of being opinionated about the folder structure.

What would happen if you were to move all the files in the blueprint's structure, is there something missing?

zimbatm avatar Feb 28 '25 09:02 zimbatm

What would happen if you were to move all the files in the blueprint's structure, is there something missing?

Could you clarify what you mean?

Lyndeno avatar Feb 28 '25 15:02 Lyndeno

What would happen if you were to move all the files in the blueprint's structure, is there something missing?

Could you clarify what you mean?

https://github.com/numtide/blueprint/issues/76#issuecomment-2668817970

JumpIn-Git avatar Mar 01 '25 10:03 JumpIn-Git