Accidentally removed ~/.local/state/nix/profiles/profile
On my raspberry pi (aka oliserver) I removed ~/.local but I forgot that nix profiles are stored there, and now I can't access my home manager packages (commands, terminfo etc.). Is there a way to restore the ~/.local/state/nix/profiles/profile symlink? I already tried switching the config again. I am using nixos module home manager with den.nix, dots are here
edit: solved by setting uninstall = true in home manager, switching, and rolling back


