Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Error: HOME is set to "/Users/xxx" but we expect "/home/xxx" #6657

Open
2 tasks done
bashfulrobot opened this issue Mar 18, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@bashfulrobot
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Hi there,

I am just adopting nix-darwin (have nixos systems), and for some reason, I am getting:

setting nvram variables...
Activating home-manager configuration for dustin.krysak
Starting Home Manager activation
Error: HOME is set to "/Users/xxx" but we expect "/home/xxx"

Now I was searching for similar and saw a few that were "very close," and the fix was to set users.users.xxx.home of which I did.

My nixpkgs and home manager are set to 24.11, and if relevant, my nix darwin is set to system.stateVersion = 5; (fresh install).

My rebuild command is: darwin-rebuild switch --flake .#hostname. My understanding is that with nix-darwin and home manager, you can use either tool for rebuilds, but I could be incorrect.

I appreciate any direction you can give.

Cheers.

Maintainer CC

No response

System information

output of `nix shell github:NixOS/nixpkgs#nix-info --extra-experimental-features nix-command --extra-experimental-features flakes --command nix-info -m`:

 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.3.0, macOS 15.3.2`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.26.2`
 - nixpkgs: `not found`

That `nixpkgs` looks suspect to me, but I am not familiar yet with proper Darwin output.
@bashfulrobot bashfulrobot added bug triage Issues or feature request that have not been triaged yet labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants