flake-aspectsand vic's dendritic libs made for you with Love++ and AI--. If you like my work, consider sponsoring
In aspect-oriented Dendritic setups, it is common to expose modules using the structure flake.modules.<class>.<aspect>.
However, for many users, a transposed attribute set, <aspect>.<class>, can be more intuitive. It often feels more natural to nest classes within aspects rather than the other way around.
This project provides a small, dependency-free transpose primitive that is powerful enough to implement cross-aspect dependencies for any Nix configuration class. It also includes a flake-parts module that transforms flake.aspects into flake.modules.
Unlike flake.modules.<class>.<aspect> which is flat, aspects form a tree via provides (alias: _) and a graph via includes.
Also works without flakes via new-scope and lib.evalModules.
