On nix 2.14+ i get the error
Error: nix-env failed: error: opening lock file '/nix/var/nix/profiles/per-user/gerg/profile.lock': No such file or directory
Running
sudo mkdir -m 0755 -p /nix/var/nix/profiles/per-user/$USER
sudo touch /nix/var/nix/profiles/per-user/$USER/profile.lock
sudo chown -R $USER:nixbld /nix/var/nix/profiles/per-user/$USER
works around that error
then without home-manager i get this error
Error: nix-env failed: error: filesystem error: read_symlink: Invalid argument [/home/gerg/.local/state/nix/profiles/home-manager]
When trying to cleanup without home-manager standalone installed
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too