What it is
Every package Nix has built or downloaded, on its own APFS volume.
Can you delete it?
No, not by hand. Deleting files by hand corrupts the Nix database. Let Nix collect garbage instead.
How to clean it safely
- Run:
nix-collect-garbage -d - Remove old profile generations first if you want more space back.
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh "/nix/store" 2>/dev/nullStep-by-step guide: Developer caches on a Mac →
Related folders
- SSH keys ·
~/.ssh - Keychains ·
~/Library/Keychains - Apple Intelligence and system assets ·
/System/Library/AssetsV2 - App containers ·
~/Library/Containers - Swap files and sleepimage ·
/private/var/vm - Group containers ·
~/Library/Group Containers
Questions
Is it safe to delete /nix/store?
No, not by hand. Deleting files by hand corrupts the Nix database. Let Nix collect garbage instead.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac