macos working like a charm
This commit is contained in:
@@ -23,17 +23,6 @@
|
||||
};
|
||||
|
||||
|
||||
# since darwin needs root now (will be removed in future)
|
||||
system.primaryUser = "bhelderman";
|
||||
|
||||
power = {
|
||||
sleep = {
|
||||
computer = 30;
|
||||
display = 5;
|
||||
allowSleepByPowerButton = true;
|
||||
};
|
||||
};
|
||||
|
||||
# import home grown host specific home-manager modules
|
||||
home-manager.users.bhelderman.imports = [
|
||||
../../../users/blake/hosts/cen-it-07.nix
|
||||
@@ -61,14 +50,18 @@
|
||||
nix-homebrew = {
|
||||
enable = true; # install homebrew
|
||||
enableRosetta = true; # install homebrew for rosetta as well
|
||||
autoMigrate = true;
|
||||
# autoMigrate = true;
|
||||
user = "bhelderman"; # user owning homebrew prefix
|
||||
};
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
# removes anything in homebrew not explicitly specified
|
||||
#onActivation.cleanup = "uninstall";
|
||||
onActivation = {
|
||||
cleanup = "uninstall";
|
||||
autoUpdate = true;
|
||||
upgrade = false;
|
||||
};
|
||||
|
||||
brews = [
|
||||
"mas"
|
||||
@@ -87,7 +80,31 @@
|
||||
"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";
|
||||
|
||||
power = {
|
||||
sleep = {
|
||||
computer = 30;
|
||||
display = 5;
|
||||
allowSleepByPowerButton = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
system.stateVersion = 6;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user