config/users/natalie/laptop/configuration.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2025-05-07 10:22:05 -07:00
{pkgs, ...}: {
2025-04-21 13:04:42 -07:00
environment.systemPackages = with pkgs; [
neovim
pinentry_mac
2025-04-21 16:49:27 -07:00
signal-desktop-bin
2025-04-21 13:04:42 -07:00
];
2024-09-27 15:09:44 -07:00
2025-05-07 10:22:05 -07:00
# Custom configuration modules in "modules" are shared between users,
# and can be configured in this "shared" namespace
shared.darwin = {
macAppStoreApps = ["wireguard"];
};
2024-09-27 15:09:44 -07:00
# Create /etc/zshrc that loads the nix-darwin environment.
programs = {
gnupg.agent.enable = true;
2024-09-27 19:01:35 -07:00
zsh.enable = true; # default shell on catalina
2024-09-27 15:09:44 -07:00
};
# When opening an interactive shell that isnt fish move into fish
2024-10-05 14:47:09 -07:00
programs.zsh = {
interactiveShellInit = ''
2024-11-23 21:04:36 -08:00
if [[ $(${pkgs.procps}/bin/ps -p $PPID -o comm) != "fish" && -z ''${ZSH_EXUCTION_STRING} ]]
2024-10-05 14:47:09 -07:00
then
2024-11-23 21:04:36 -08:00
[[ -o login ]] && LOGIN_OPTION='--login' || LOGIN_OPTION=""
2024-10-05 14:47:09 -07:00
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
2025-05-07 10:22:05 -07:00
# Use homebrew to install casks
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
cleanup = "none";
upgrade = true;
};
brews = [
"imagemagick"
"opam"
];
casks = [
"battle-net"
"stremio"
"alt-tab"
"legcord"
"zulip"
"zen-browser"
"supertuxkart"
];
};
2024-09-27 15:09:44 -07:00
}