From e2c5514c76e75368abc12b0ecbf5e6cab70db45e Mon Sep 17 00:00:00 2001 From: reo101 Date: Wed, 6 Sep 2023 22:07:09 +0300 Subject: [PATCH] feat(darwin)!: update `brew` and `system` modules Add `firefox`, `notion` and `slack` Disable `nix-index` Disable volume/brightness popups --- modules/nix-darwin/brew/default.nix | 7 +++++-- modules/nix-darwin/system/default.nix | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/nix-darwin/brew/default.nix b/modules/nix-darwin/brew/default.nix index be36d3b..69deff3 100644 --- a/modules/nix-darwin/brew/default.nix +++ b/modules/nix-darwin/brew/default.nix @@ -40,7 +40,6 @@ in "homebrew/core" "homebrew/cask" "homebrew/cask-fonts" - "homebrew/cask-drivers" "homebrew/services" "cmacrae/formulae" "FelixKratz/formulae" @@ -48,17 +47,21 @@ in ]; brews = [ "libusb" + "openssl" "switchaudio-osx" "pinentry-touchid" ]; casks = [ "android-platform-tools" "docker" + "firefox" "font-fira-code-nerd-font" "karabiner-elements" + "notion" + # "osxfuse" "scroll-reverser" "sf-symbols" - # "slack" + "slack" "spotify" "xquartz" ]; diff --git a/modules/nix-darwin/system/default.nix b/modules/nix-darwin/system/default.nix index 42ed9db..fa521bf 100644 --- a/modules/nix-darwin/system/default.nix +++ b/modules/nix-darwin/system/default.nix @@ -18,7 +18,7 @@ in services.activate-system.enable = true; services.nix-daemon.enable = true; - programs.nix-index.enable = true; + # programs.nix-index.enable = true; environment.shells = [ pkgs.zsh ]; @@ -177,6 +177,9 @@ in if ! [ "$\{SPCTL}" = "assessments disabled" ]; then sudo spctl --master-disable fi + + # echo "Set hostname" + # sudo scutil --set HostName $hostname ''; # User-level settings @@ -233,6 +236,9 @@ in # echo "Disable \"Save in Keychain\" for pinentry-mac" # 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" __dock_item() { echo "${