dotfiles/modules/darwin/user.nix

28 lines
583 B
Nix
Raw Permalink Normal View History

2022-06-20 03:54:16 +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
home.sessionVariables = { SHELL = "${pkgs.fish}/bin/fish"; };
# 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
};
}