config/users/chloe/configuration.nix
chloe caruso 24d8eeb413 reorganize "hosts/" into "users/"
the plan here is a user owns one or multiple machines:

users/
+-- chloe/
|   +-- home.nix               # apply to all
|   +-- sandwich/
|   |   +-- configuration.nix  # per machine
|   |   +-- home.nix
|   +-- paperback/
|       ...
+-- natalie/
    ...
2025-05-05 19:05:37 -07:00

28 lines
669 B
Nix

{
pkgs,
userSettings,
...
}: {
environment.systemPackages = with pkgs; [
neovim
pinentry_mac
signal-desktop-bin
];
# Create /etc/zshrc that loads the nix-darwin environment.
programs = {
gnupg.agent.enable = true;
zsh.enable = true; # default shell on catalina
};
# When opening an interactive shell that isnt fish move into fish
programs.zsh = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps -p $PPID -o comm) != "fish" && -z ''${ZSH_EXUCTION_STRING} ]]
then
[[ -o login ]] && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
}