2023-11-03 04:12:17 +00:00
|
|
|
{ flake, config, ... }: {
|
2023-12-23 01:49:53 +00:00
|
|
|
environment.variables.HOMEBREW_NO_ANALYTICS = "1";
|
2023-11-03 04:12:17 +00:00
|
|
|
programs.fish = {
|
|
|
|
shellInit = ''
|
|
|
|
eval "$(${config.homebrew.brewPrefix}/brew shellenv fish)"
|
|
|
|
'';
|
2023-12-23 01:49:53 +00:00
|
|
|
# https://docs.brew.sh/Shell-Completion#configuring-completions-in-fish
|
|
|
|
# for some reason if the Fish completions are added at the end of `fish_complete_path` they don't
|
|
|
|
# seem to work, but they do work if added at the start.
|
2023-11-03 04:12:17 +00:00
|
|
|
interactiveShellInit = ''
|
|
|
|
if test -d (brew --prefix)"/share/fish/completions"
|
|
|
|
set -p fish_complete_path (brew --prefix)/share/fish/completions
|
|
|
|
end
|
|
|
|
if test -d (brew --prefix)"/share/fish/vendor_completions.d"
|
|
|
|
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
|
|
|
|
end
|
|
|
|
'';
|
2022-09-17 03:15:27 +00:00
|
|
|
};
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
homebrew = {
|
|
|
|
enable = flake.inputs.homebrew-enabled.value;
|
2023-11-03 23:19:07 +00:00
|
|
|
onActivation = {
|
|
|
|
autoUpdate = true;
|
|
|
|
upgrade = true;
|
|
|
|
cleanup = "uninstall";
|
|
|
|
};
|
2023-11-03 04:12:17 +00:00
|
|
|
global.brewfile = true;
|
2023-10-26 02:37:42 +00:00
|
|
|
|
2023-12-23 01:49:53 +00:00
|
|
|
taps = [
|
|
|
|
"homebrew/cask-versions"
|
|
|
|
"homebrew/services"
|
|
|
|
"indirect/homebrew-tap" # ghostty formula
|
|
|
|
];
|
2023-10-26 02:37:42 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
masApps = {
|
2024-01-23 19:05:02 +00:00
|
|
|
Amphetamine = 937984704;
|
2023-11-03 04:12:17 +00:00
|
|
|
"Draw Things" = 6444050820;
|
|
|
|
GrandPerspective = 1111570163;
|
|
|
|
Tailscale = 1475387142;
|
2024-01-23 19:05:02 +00:00
|
|
|
Things = 904280696;
|
2023-11-03 04:12:17 +00:00
|
|
|
Xcode = 497799835;
|
|
|
|
};
|
2023-10-26 02:37:42 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
caskArgs.no_quarantine = true;
|
|
|
|
casks = [
|
|
|
|
# system tools
|
|
|
|
"alfred"
|
|
|
|
"dozer"
|
|
|
|
"knockknock"
|
|
|
|
"lulu"
|
|
|
|
"protonvpn"
|
|
|
|
"secretive"
|
|
|
|
"shortcat"
|
|
|
|
"stay"
|
2023-10-26 02:37:42 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
# design
|
2024-01-23 23:23:10 +00:00
|
|
|
"imageoptim"
|
2023-11-03 04:12:17 +00:00
|
|
|
"krita"
|
|
|
|
"macsvg"
|
2023-10-26 02:37:42 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
# browsers
|
|
|
|
"arc"
|
|
|
|
"firefox"
|
|
|
|
"orion"
|
2023-10-26 02:37:42 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
# messaging apps
|
|
|
|
"messenger"
|
|
|
|
"signal"
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
# editors and IDEs
|
|
|
|
"lapce"
|
|
|
|
"zed"
|
2022-12-21 05:22:57 +00:00
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
# terminal emulators
|
2023-12-23 01:49:53 +00:00
|
|
|
"ghostty"
|
2023-11-03 04:12:17 +00:00
|
|
|
"kitty"
|
|
|
|
|
|
|
|
# peripheral tools
|
|
|
|
"logi-options-plus"
|
|
|
|
"qflipper"
|
|
|
|
"via"
|
|
|
|
];
|
|
|
|
};
|
2022-01-23 23:50:34 +00:00
|
|
|
}
|