NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.96k stars 1.54k forks source link

sudo $(which nix-store) --optimize breaks the store on a single user install #5363

Open colemickens opened 3 years ago

colemickens commented 3 years ago

Describe the bug

Maybe I should've expected this, I'm so used to running nix-store as root for these things.

I repaired by chown user:user /nix/store. But maybe nix should warn me if it's a single user install and block me from running commands as root, or it should not change the permissions on the store in this case.

[opc@pycliexampleinstance store]$ nix --version
nix (Nix) 2.4pre20210922_bcd73eb
stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info