Unable to uninstall home-manager-path

I am trying to uninstall home-manager-path from my nix-env:

$ nix-env -q

$ nix-env -e home-manager-path
uninstalling 'home-manager-path'
error: this derivation has bad 'meta.outputsToInstall'

How do I uninstall home-manager? I am trying to use the home-manager NixOS module now.

Note that unless you use home-manager.useUserPackages = true in your nixos config, home-manager will still install its packages through home-manager-path in ~/.nix-profile even when used as a nixos module.

That said, I’m not sure how to uninstall it, except given that it’s the only thing you have installed, you can probably blow away the entire profile and start over. It’s under /nix/var/nix/profiles/per-user/<username> somewhere I think. I haven’t used that functionality in quite a while. I may remember wrong. Check where your ~/.nix-profile points.

Hosted by Flying Circus.