feat(darwin)!: update brew and system modules

Add `firefox`, `notion` and `slack`
Disable `nix-index`
Disable volume/brightness popups
This commit is contained in:
reo101 2023-09-06 22:07:09 +03:00
parent 26cafb1599
commit e2c5514c76
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
2 changed files with 12 additions and 3 deletions

View file

@ -40,7 +40,6 @@ in
"homebrew/core" "homebrew/core"
"homebrew/cask" "homebrew/cask"
"homebrew/cask-fonts" "homebrew/cask-fonts"
"homebrew/cask-drivers"
"homebrew/services" "homebrew/services"
"cmacrae/formulae" "cmacrae/formulae"
"FelixKratz/formulae" "FelixKratz/formulae"
@ -48,17 +47,21 @@ in
]; ];
brews = [ brews = [
"libusb" "libusb"
"openssl"
"switchaudio-osx" "switchaudio-osx"
"pinentry-touchid" "pinentry-touchid"
]; ];
casks = [ casks = [
"android-platform-tools" "android-platform-tools"
"docker" "docker"
"firefox"
"font-fira-code-nerd-font" "font-fira-code-nerd-font"
"karabiner-elements" "karabiner-elements"
"notion"
# "osxfuse"
"scroll-reverser" "scroll-reverser"
"sf-symbols" "sf-symbols"
# "slack" "slack"
"spotify" "spotify"
"xquartz" "xquartz"
]; ];

View file

@ -18,7 +18,7 @@ in
services.activate-system.enable = true; services.activate-system.enable = true;
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
programs.nix-index.enable = true; # programs.nix-index.enable = true;
environment.shells = [ pkgs.zsh ]; environment.shells = [ pkgs.zsh ];
@ -177,6 +177,9 @@ in
if ! [ "$\{SPCTL}" = "assessments disabled" ]; then if ! [ "$\{SPCTL}" = "assessments disabled" ]; then
sudo spctl --master-disable sudo spctl --master-disable
fi fi
# echo "Set hostname"
# sudo scutil --set HostName $hostname
''; '';
# User-level settings # User-level settings
@ -233,6 +236,9 @@ in
# echo "Disable \"Save in Keychain\" for pinentry-mac" # echo "Disable \"Save in Keychain\" for pinentry-mac"
# defaults write org.gpgtools.common DisableKeychain -bool yes # defaults write org.gpgtools.common DisableKeychain -bool yes
echo "Disable bezels (volume/brightness popups)"
launchctl unload -wF /System/Library/LaunchAgents/com.apple.OSDUIHelper.plist
echo "Define dock icon function" echo "Define dock icon function"
__dock_item() { __dock_item() {
echo "${ echo "${