Filesystem-based module system for Nix
Haumea is not related to or a replacement for NixOS modules. It is closer to the module systems of traditional programming languages, with support for file hierarchy and visibility.
In short, haumea maps a directory of Nix files into an attribute set:
No more manual imports
Manually importing files can be tedious, especially when there are many of them. Haumea takes care of all of that by automatically importing the files into an attribute set.
Haumea takes inspiration from traditional programming languages. Visibility makes it easy to create utility modules, and haumea makes self-referencing and creating fixed points a breeze with the introduction of
Organized directory layout
What you see is what you get. By default1, the file tree will look exactly like the resulting attribute set.
Changing how the files are loaded is as easy as specifying a
loader, and the
transformeroption makes it possible to extensively manipulate the tree.
Unless you are doing transformer magic