Skip to content

Issues

An awesome list of issues I’ve had that I want to document for future reference.

error: chmod '"/nix/store/66kaihiqnn02vpxs6qydcbw9pq7nrkld-iterm2-3.5.4/Applications/iTerm2.app"': Operation not permitted

You can get this error when trying to run nix store gc. The fix is to give Nix Full Disk Access. To do so, go to System Settings > Privacy & Security > Full Disk Access and add Nix to the list of apps that have full disk access.

See also NixOS/nix#6765.

On macOS with nix installed you may notice that your CPU is absolutely being pegged. This is almost certainly because of gatekeeper. You can disable gatekeeper by opening settings > Privacy & Security > “Allow applications from” and setting that to “Anywhere”. This is caused by most nix store items not being signed.