diff --git a/nix/home/universal.nix b/nix/home/universal.nix index 350601f..a1e82ec 100644 --- a/nix/home/universal.nix +++ b/nix/home/universal.nix @@ -29,7 +29,7 @@ with builtins; # Let Home Manager install and manage itself. programs.home-manager.enable = true; home.username = "haak"; - home.homeDirectory = "/home/haak"; + home.homeDirectory = if pkgs.stdenv.isDarwin then "/Users/haak/" else "/home/haak"; home.stateVersion = "22.05"; # no need for home-manager news, thanks diff --git a/nix/system/worktop/darwin-configuration.nix b/nix/system/worktop/darwin-configuration.nix index b996c3b..6a932b8 100644 --- a/nix/system/worktop/darwin-configuration.nix +++ b/nix/system/worktop/darwin-configuration.nix @@ -71,6 +71,10 @@ in # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; + # have to do this to play nicely with home-manager: + # https://github.com/nix-community/home-manager/issues/4026 + users.users.haak.home = "/Users/haak"; + # Auto upgrade nix package and the daemon service. services.nix-daemon.enable = true; # nix.package = pkgs.nix;