mas rebuild error fix
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user