Fix an issue with darwin/home-manager expectatins for home directory
This commit is contained in:
parent
111313283f
commit
cdc8897467
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue