config/users/natalie/laptop/configuration.nix
2025-05-28 12:06:37 -07:00

50 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
pinentry_mac
];
# Custom configuration modules in "modules" are shared between users,
# and can be configured in this "shared" namespace
shared.darwin = {
macAppStoreApps = [ "wireguard" ];
};
# 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
'';
};
# Use homebrew to install casks
homebrew = {
brews = [
"imagemagick"
"opam"
];
casks = [
"battle-net"
"stremio"
"alt-tab"
"legcord"
"zulip"
"zen"
"supertuxkart"
"sf-symbols"
"mediosz/tap/swipeaerospace"
];
};
}