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

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 4 points 1 month ago

thx, but I forgot to edit the post, as I already solved it

I had to set the uninstall home manager option, then switch, and roll back, it worked

but thank you for support anyway

  • source
  • parent