I’m trying to upgrade Nix in a multi-user installation on Fedora. My problem boils down to:
% nix upgrade-nix [0.0 MiB DL] replacing old 'nix-2.3.4' installing 'nix-2.3.7' error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied error: program '/nix/store/8928ygfyf9iassfrnj76v55s6zid58ja-nix-2.3.4/bin/nix-env' failed with exit code 1 # Mmh. Apparently, I need more permissions: % sudo $(which nix) upgrade-nix error: couldn't figure out how Nix is installed, so I can't upgrade it
Is this a bug or am I holding it wrong?