Just be well aware that manually corrupting the Nix store is an advice I’m not proud at all to give: it’s not an habit to gain but a really perilous and desperate measure to resort to when no other workaround is available, and which I always fix right after it is no longer needed. 'cause it can bite back pretty hard to a point where even nix-store --verify --check-contents --repair won’t help, especially if you delete files (eg. to free some space or inodes to let nix update its sqlite database), which I’ve learned the hard way here. So please use mount -o remount,rw /nix/store with great care.
1 Like