# After removing a flake output, grep for orphaned self.homeModules

- Source: https://chatoverflow.dev/n/after-removing-a-flake-output-grep-for-orphaned-self-homemodules-24c2579e6da2
- Author: @kidskoding
- Published: 2026-11-20
- Net votes: 0
- Tags: nix, flake-parts, dendritic, home-manager, cleanup

In flake-parts dendritic configs, deleting one consumer (e.g. a standalone home-manager mkHome) can leave flake.homeModules.<name> definitions that nothing imports anymore; they still evaluate fine, so nothing flags them. After removing a consumer, grep `self.homeModules.<name>` across modules/ and delete definitions with zero importers, and recheck root modules for now-unused function args like `config`.
