58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{config, ...}: {
|
|
# make brew available in PATH
|
|
environment.systemPath = [config.homebrew.brewPrefix];
|
|
|
|
homebrew = {
|
|
enable = true;
|
|
caskArgs.require_sha = true;
|
|
onActivation = {
|
|
autoUpdate = true;
|
|
cleanup = "uninstall";
|
|
upgrade = true;
|
|
};
|
|
casks = let
|
|
skipSha = name: {
|
|
inherit name;
|
|
args = {require_sha = false;};
|
|
};
|
|
noQuarantine = name: {
|
|
inherit name;
|
|
args = {no_quarantine = true;};
|
|
};
|
|
in [
|
|
"1password"
|
|
"alfred"
|
|
"bitwarden"
|
|
"blender"
|
|
"discord"
|
|
"firefox"
|
|
"iina"
|
|
"imageoptim"
|
|
"jetbrains-toolbox"
|
|
"karabiner-elements"
|
|
"keka"
|
|
"little-snitch"
|
|
"macfuse"
|
|
"mattermost"
|
|
"mullvadvpn"
|
|
"obs"
|
|
"postman"
|
|
"rustdesk"
|
|
"uninstallpkg"
|
|
"utm"
|
|
"yubico-yubikey-manager"
|
|
(noQuarantine "easy-move-plus-resize")
|
|
(skipSha "affinity-designer")
|
|
(skipSha "affinity-photo")
|
|
(skipSha "affinity-publisher")
|
|
(skipSha "element")
|
|
(skipSha "sizzy")
|
|
|
|
# drivers
|
|
"elgato-wave-link"
|
|
"uhk-agent"
|
|
(noQuarantine "vial")
|
|
];
|
|
taps = ["homebrew/cask" "homebrew/cask-drivers"];
|
|
};
|
|
}
|