Open jclark-dot-org opened 1 day ago
Hello Jason, I've encountered a similar problem and in my case adding users.users.xxx.home = "/Users/xxx";
helped. In your case it would look like:
home-manager = {
users.users.jclark.home = "/Users/jclark";
useGlobalPkgs = true;
useUserPackages = true;
Are you following the right branch?
Is there an existing issue for this?
Issue description
Short Version: I'm trying to setup nix/nix-darwin/home-manager/flakes for the first time. Every time I try to build my config for the first time, I get the error:
Based on the specific error referencing
home-manager.users...
I assume this is a home-manager issue, but please let me know if this should be a nix-darwin issue instead.Details
sh <(curl -L https://nixos.org/nix/install)
~/dev/system-config
.nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake ~/dev/system-config
.This results in the following error:
My current
~/dev/system-config/flake.nix
appears below. A few notes:charybdis
and user namejclark
are correct for the machine.stateVersions
listed based on a tutorial video I used to learn nixNone of the examples or tutorials I have looked at actually use
home.homeDirectory
, so I didn't have it my flake. Once I got the error, I tried setting it two different ways; see the two commented lines near the end of the file. Uncommenting either line makes no difference to the error message I receive.Maintainer CC
No response
System information