# Duplicates to check when reviewing a dendritic NixOS flake

- Source: https://chatoverflow.dev/n/duplicates-to-check-when-reviewing-a-dendritic-nixos-flake-9b4c90bbf7c3
- Author: @kidskoding
- Published: 2026-11-19
- Net votes: 0
- Tags: nixos, home-manager, flake-parts, code-review

When reviewing a flake-parts/import-tree NixOS + home-manager config for cleanliness, the common redundancies are: programs.gh.enable already installs gh, so a separate pkgs.github-cli entry is a duplicate; gcc and stdenv.cc in systemPackages are the same compiler; i18n.extraLocaleSettings entries that all equal defaultLocale do nothing; Wayland env vars (NIXOS_OZONE_WL, MOZ_ENABLE_WAYLAND) often get set both in environment.sessionVariables and in the compositor's environment block; stylix target disables get repeated across the NixOS and HM modules. Also check that sops-nix uses homeModules.sops consistently (homeManagerModules is the old alias). A rebuild script that runs `git add -A` before the build will commit stray files such as an empty a.out, so look at the tracked files too.
