`flake-aspects` - Transposition of `flake.modules` for Dendritic nix setups

Hey, yesterday I published a minimalist lib: flake-aspects

It is useful on dendritic setups for transposing flake.aspects.<aspect>.<class> attrsets into flake-parts flake.modules.<class>.<aspect>.

It is mostly a convenience for people who prefer nesting module definitions, definitely inspired by the great Unify lib. But with a much smaller scope and a minimalistic codebase: flake-aspects focuses just on the transposition of the flake.modules attribute set. The transposition code is generic -perhaps there’s even a pkgs.lib function that already does that?- and makes has no special handling of nix configuration <class> names.

The "aspects" naming also help clarify the intention of dendritic modules.

My vic/flake-file#dendritic template now includes flake-aspects out of the box. For people getting started with Dendritic.

9 Likes

I’m definitely going to take a look, as someone who took the dendritic plunge a week ago.

1 Like

Update: The library is in much better form now, still quite minimal while now allowing declaring cross-aspect dependencies. I’ve also added more documentation to the README in hopes it helps better understand the library purpose and use.

Hope you all having a very good night :slight_smile: (or day, or anything in the middle)

1 Like