feat(darwin): harden brew installations

This commit is contained in:
winston 2023-02-19 20:06:19 +01:00
parent 3e2c6ed346
commit 1fba12a74a
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 22 additions and 11 deletions

View file

@ -82,7 +82,7 @@
}; };
}; };
darwinConfigurations = { darwinConfigurations = {
"sashimi-slicer" = darwin.lib.darwinSystem rec { "sashimi" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [

View file

@ -23,23 +23,23 @@
homebrew = { homebrew = {
enable = true; enable = true;
caskArgs.no_quarantine = true; caskArgs = {
onActivation = { require_sha = true;
autoUpdate = true;
cleanup = "zap";
}; };
casks = [ onActivation.autoUpdate = true;
casks = let
skipSha = name: {
inherit name;
args = {require_sha = false;};
};
in [
"1password" "1password"
"affinity-designer"
"affinity-photo"
"affinity-publisher"
"alfred" "alfred"
"bitwarden" "bitwarden"
"blender" "blender"
"discord" "discord"
"docker" "docker"
"easy-move-plus-resize" "easy-move-plus-resize"
"eloston-chromium"
"firefox" "firefox"
"imageoptim" "imageoptim"
"insomnia" "insomnia"
@ -54,11 +54,22 @@
"postman" "postman"
"qt-creator" "qt-creator"
"rustdesk" "rustdesk"
"sizzy"
"uninstallpkg" "uninstallpkg"
"utm" "utm"
"yubico-yubikey-manager" "yubico-yubikey-manager"
# casks without shasums
(skipSha "affinity-designer")
(skipSha "affinity-photo")
(skipSha "affinity-publisher")
(skipSha "sizzy")
# community builds needing to skip quarantine
{
name = "eloston-chromium";
args = {no_quarantine = true;};
}
# drivers # drivers
"elgato-wave-link" "elgato-wave-link"
"uhk-agent" "uhk-agent"