#31 just landed, allowing users to inject variables into the scope of every module in the tree.
Example:
# flake.nix
import-tree.addScope { colors = ["red" "green" "blue"]; } ./modules
# modules/example.nix
{
brand.colors = colors;
}
In example.nix, colors does not need to be explicitly imported at the top of the file. It's already in scope.
See #30 for how it will enhance onboarding for den.
#31 just landed, allowing users to inject variables into the scope of every module in the tree.
Example:
In
example.nix, colors does not need to be explicitly imported at the top of the file. It's already in scope.See #30 for how it will enhance onboarding for den.