dotfiles/modules/darwin/user.nix

32 lines
601 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2022-06-13 12:53:00 +00:00
2022-12-21 21:18:03 +00:00
config = lib.mkIf pkgs.stdenv.isDarwin {
2022-12-21 21:18:03 +00:00
users.users."${config.user}" = {
# macOS user
home = config.homePath;
shell = pkgs.fish; # Default shell
};
2024-01-25 02:52:33 +00:00
home-manager.users.${config.user} = {
# Default shell setting doesn't work
2024-04-20 13:42:06 +00:00
home.sessionVariables = {
SHELL = "${pkgs.fish}/bin/fish";
};
2024-01-25 02:52:33 +00:00
# Used for aerc
xdg.enable = true;
};
# Fix for: 'Error: HOME is set to "/var/root" but we expect "/var/empty"'
home-manager.users.root.home.homeDirectory = lib.mkForce "/var/root";
2022-06-13 12:53:00 +00:00
};
}