mas rebuild error fix

This commit is contained in:
2026-04-23 19:53:32 -05:00
parent 47dfb00e43
commit 66b5af02b1
3 changed files with 13 additions and 24 deletions
+4 -15
View File
@@ -58,8 +58,8 @@
enable = true;
# removes anything in homebrew not explicitly specified
onActivation = {
cleanup = "uninstall";
autoUpdate = true;
cleanup = "zap";
autoUpdate = false;
upgrade = false;
};
@@ -76,22 +76,11 @@
];
masApps = {
# "name" = app_id_number;
"hiddenbar" = 1452453066;
"testflight" = 899247664;
# "hiddenbar" = 1452453066;
# "testflight" = 899247664;
};
};
# for mas to not throw rebuild fit
system.activationScripts.masFix.text = ''
if command -v mas >/dev/null; then
for app in ${toString (map (id: builtins.toString id) (builtins.attrValues config.homebrew.masApps))}; do
if mas list | grep -q "$app"; then
echo "mas app $app already installed, skipping"
else
mas install "$app"
fi
done
fi
'';
# since darwin needs root now (will be removed in future)
system.primaryUser = "bhelderman";