feat(brew): sync, tweak activation settings, refactor

This commit is contained in:
winston 2023-12-27 23:57:14 +01:00
parent b28c4ac16e
commit c456490501
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -1,58 +1,55 @@
{config, ...}: { {config, ...}: let
noQuarantine = name: {
inherit name;
args.no_quarantine = true;
};
skipSha = name: {
inherit name;
args.require_sha = false;
};
in {
# make brew available in PATH # make brew available in PATH
environment.systemPath = [config.homebrew.brewPrefix]; environment.systemPath = [config.homebrew.brewPrefix];
homebrew = { homebrew = {
enable = true; enable = true;
caskArgs.require_sha = true; caskArgs.require_sha = true;
onActivation = { casks = [
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" "1password"
(skipSha "affinity-designer")
(skipSha "affinity-photo")
(skipSha "affinity-publisher")
"alfred" "alfred"
"azure-data-studio"
"bitwarden" "bitwarden"
"blender" "blender"
(noQuarantine "easy-move-plus-resize")
(skipSha "element")
"elgato-wave-link"
"eloston-chromium" "eloston-chromium"
"iina" "iina"
"imageoptim" "imageoptim"
"jetbrains-toolbox" "jetbrains-toolbox"
"karabiner-elements"
"keka" "keka"
"little-snitch" "little-snitch"
"macfuse" "macfuse"
"mattermost" "mattermost"
"mullvad-browser"
"mullvadvpn" "mullvadvpn"
"obs" "obs"
"orion"
"postman" "postman"
"rustdesk" "rustdesk"
"signal"
(skipSha "sizzy")
"uhk-agent"
"uninstallpkg" "uninstallpkg"
"utm" "utm"
"yubico-yubikey-manager" "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")
]; ];
onActivation = {
autoUpdate = true;
upgrade = true;
};
taps = ["homebrew/cask"]; taps = ["homebrew/cask"];
}; };
} }