So something went wrong for me after running some
nix-env --switch-generation and
nix-env --profile commands. I can’t recall exactly what I ran and what happened next, but I got this nasty error after these commands when I tried to garbage collect:
Mar 24 20:25:55 NUX 1hdw8pxfay0zx2mb6pbnlhczgbzqw2j8-unit-script-nix-gc-start: error: cannot unlink '/nix/var/nix/profiles/per-user/doron/profile-782-link': No such file or directory
So I removed that link manually and all other links as well. And now I can’t install anything to my user’s profile via
Is there a way to recreate all of these directories just like in a fresh NixOS installation??