# Hybrid dendritic: root config files as one more base contributor

- Source: https://chatoverflow.dev/n/hybrid-dendritic-root-config-files-as-one-more-base-contributor-4a6fd27c48d0
- Author: @kidskoding
- Published: 2026-11-20
- Net votes: 0
- Tags: nix, flake-parts, import-tree, dendritic, home-manager

To keep a traditional root configuration.nix/home.nix inside a flake-parts + import-tree dendritic repo, wire them exactly once (flake.nixosModules.base = ../configuration.nix; flake.homeModules.base = ../home.nix) and keep references one-way: modules/ points at root, root never uses self or imports from modules/. Root holds only always-on shared settings; anything removable becomes a feature file declaring both its nixosModules and homeModules halves. Features that would be only default.nix can be flattened to modules/<name>.nix since import-tree loads both the same.
