36 lines
699 B
Nix
Raw Normal View History

2024-04-20 09:42:06 -04:00
{
config,
pkgs,
lib,
...
}:
{
2022-06-13 08:53:00 -04:00
2022-12-21 14:18:03 -07:00
config = lib.mkIf pkgs.stdenv.isDarwin {
2022-12-21 14:18:03 -07:00
users.users."${config.user}" = {
# macOS user
home = config.homePath;
2024-12-17 08:21:36 -05:00
uid = 502;
# shell = pkgs.fish; # Default shell
2022-12-21 14:18:03 -07:00
};
# This might fix the shell issues
2024-12-17 08:21:36 -05:00
users.knownUsers = [ config.user ];
2024-01-24 21:52:33 -05:00
home-manager.users.${config.user} = {
# Default shell setting doesn't work
2024-04-20 09:42:06 -04:00
home.sessionVariables = {
SHELL = "${pkgs.fish}/bin/fish";
};
2024-01-24 21:52:33 -05: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 08:53:00 -04:00
};
}