mas rebuild error fix
This commit is contained in:
@@ -58,8 +58,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
# removes anything in homebrew not explicitly specified
|
# removes anything in homebrew not explicitly specified
|
||||||
onActivation = {
|
onActivation = {
|
||||||
cleanup = "uninstall";
|
cleanup = "zap";
|
||||||
autoUpdate = true;
|
autoUpdate = false;
|
||||||
upgrade = false;
|
upgrade = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -76,22 +76,11 @@
|
|||||||
];
|
];
|
||||||
masApps = {
|
masApps = {
|
||||||
# "name" = app_id_number;
|
# "name" = app_id_number;
|
||||||
"hiddenbar" = 1452453066;
|
# "hiddenbar" = 1452453066;
|
||||||
"testflight" = 899247664;
|
# "testflight" = 899247664;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# for mas to not throw rebuild fit
|
# 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)
|
# since darwin needs root now (will be removed in future)
|
||||||
system.primaryUser = "bhelderman";
|
system.primaryUser = "bhelderman";
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ in {
|
|||||||
"firefox"
|
"firefox"
|
||||||
];
|
];
|
||||||
masApps = {
|
masApps = {
|
||||||
# "pages" = 409201541;
|
"pages" = 361309726 ;
|
||||||
# "numbers" = 409203825;
|
"numbers" = 361304891;
|
||||||
# "keynote" = 409183694;
|
"keynote" = 361285480;
|
||||||
# "bitwarden" = 1352778147;
|
"bitwarden" = 1352778147;
|
||||||
# "darkreader" = 1438243180;
|
"darkreader" = 1438243180;
|
||||||
# "ghostery" = 6504861501;
|
"ghostery" = 6504861501;
|
||||||
# "privacy" = 6449850851;
|
"privacy" = 6449850851;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ in {
|
|||||||
homebrew = {
|
homebrew = {
|
||||||
casks = [
|
casks = [
|
||||||
"asana"
|
"asana"
|
||||||
#"microsoft-teams"
|
"microsoft-teams"
|
||||||
"microsoft-office"
|
"microsoft-office"
|
||||||
];
|
];
|
||||||
masApps = {
|
masApps = {
|
||||||
# "configurator" = 1168254295;
|
"configurator" = 1168254295;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user