dotfiles/modules/darwin/user.nix

36 lines
699 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;
2024-12-17 13:21:36 +00:00
uid = 502;
# shell = pkgs.fish; # Default shell
2022-12-21 21:18:03 +00:00
};
# This might fix the shell issues
2024-12-17 13:21:36 +00:00
users.knownUsers = [ config.user ];
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
};
}