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";
+7 -7
View File
@@ -33,13 +33,13 @@ in {
"firefox"
];
masApps = {
# "pages" = 409201541;
# "numbers" = 409203825;
# "keynote" = 409183694;
# "bitwarden" = 1352778147;
# "darkreader" = 1438243180;
# "ghostery" = 6504861501;
# "privacy" = 6449850851;
"pages" = 361309726 ;
"numbers" = 361304891;
"keynote" = 361285480;
"bitwarden" = 1352778147;
"darkreader" = 1438243180;
"ghostery" = 6504861501;
"privacy" = 6449850851;
};
};
};
+2 -2
View File
@@ -22,11 +22,11 @@ in {
homebrew = {
casks = [
"asana"
#"microsoft-teams"
"microsoft-teams"
"microsoft-office"
];
masApps = {
# "configurator" = 1168254295;
"configurator" = 1168254295;
};
};