nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.31k stars 1.69k forks source link

bug: uninstall home-manager incomplete #4758

Open jost-s opened 7 months ago

jost-s commented 7 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

When running home-manager uninstall, "Activating setupLaunchAgentsfails due to calling the previously deleted commandhome-manager`:

$ home-manager uninstall       
This will remove Home Manager from your system.
Really uninstall Home Manager? [y/n] y
Switching to empty Home Manager configuration...
these 5 derivations will be built:
  /nix/store/a9f4qblm1mjr4a69p5q9iapdc4djdz06-home-manager-files.drv
  /nix/store/87nlz0qsp4j93kx8ys58ljm80cfrk2ir-home-manager-fonts.drv
  /nix/store/z4rh6lm2a93znp9436sak178sz2f0f25-home-manager-path.drv
  /nix/store/kshmgz3vzrrhziy9l79zlw6kcsc40s5d-activation-script.drv
  /nix/store/3xr3sy6vfq960qmw890gn08l5xx1scdd-home-manager-generation.drv
building '/nix/store/a9f4qblm1mjr4a69p5q9iapdc4djdz06-home-manager-files.drv'...
building '/nix/store/z4rh6lm2a93znp9436sak178sz2f0f25-home-manager-path.drv'...
building '/nix/store/87nlz0qsp4j93kx8ys58ljm80cfrk2ir-home-manager-fonts.drv'...
created 7 symlinks in user environment
created 0 symlinks in user environment
building '/nix/store/kshmgz3vzrrhziy9l79zlw6kcsc40s5d-activation-script.drv'...
building '/nix/store/3xr3sy6vfq960qmw890gn08l5xx1scdd-home-manager-generation.drv'...
/nix/store/q0qfz55f5grzmmvxl1jqzn7ccd41sb7l-home-manager-generation
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLaunchAgents
Activating checkLinkTargets
Activating writeBoundary
Activating copyFonts
Activating installPackages
replacing old 'home-manager-path'
installing 'home-manager-path'
building '/nix/store/vbc9pyfdzhpchiaym1yag7makjr6f9z6-user-environment.drv'...
Activating linkGeneration
Cleaning up orphan links from /Users/jost
Creating profile generation 63
Creating home file links in /Users/jost
Activating onFilesChange
Activating setupLaunchAgents
/Users/jost/.nix-profile/bin/home-manager: line 529: /Users/jost/.nix-profile/bin/nix-build: No such file or directory

Maintainer CC

No response

System information

- system: `"aarch64-darwin"`
 - host os: `Darwin 22.6.0, macOS 13.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.13.2`
 - channels(root): `""`
 - channels(jost): `""`
 - nixpkgs: `/Users/jost/.nix-defexpr/channels/nixpkgs`

I was on channels `nixpkgs` unstable and `home-manager` master.
stale[bot] commented 3 months ago

Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.