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 issues on the home-manager repo, 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.
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.