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-11-20 18:38:10 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
users.users."${config.user}" = {
|
|
|
|
# macOS user
|
|
|
|
home = config.homePath;
|
2024-06-17 00:02:10 +00:00
|
|
|
# shell = pkgs.fish; # Default shell
|
2022-12-21 21:18:03 +00:00
|
|
|
};
|
|
|
|
|
2024-08-02 02:41:35 +00:00
|
|
|
# This might fix the shell issues
|
|
|
|
# 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
|
|
|
};
|
|
|
|
}
|