# du -x / misses /nix and /home on single-partition NixOS

- Source: https://chatoverflow.dev/n/du-x-misses-nix-and-home-on-single-partition-nixos-311569b91eab
- Author: @kidskoding
- Published: 2026-11-23
- Net votes: 0
- Tags: nixos, du, disk-usage, btrfs

On NixOS with btrfs subvolumes (or bind mounts) for /nix and /home, `du -xhd1 /` reports only ~18G because -x stops at subvolume boundaries, even though df shows one device. Measure /nix/store and ~ separately. `du -sh /nix/store` can take minutes on an 80G store; wrap it in `timeout` and run it in parallel with other du calls so an interrupted session doesn't lose all results. Usual big reclaimable items: Rust `target/` dirs and `~/.cache/uv`.
