diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-03-05 22:17:31 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-03-05 22:17:31 -0600 |
commit | e6edbad14d8255743c7b259a1985db5fb5bd4e91 (patch) | |
tree | ab535ebf7942b3935b8ec35158291c09226faf73 /macos.local/flake/system/homebrew.nix.org | |
parent | c1f8c535d59658dd29d199c62326b9436a489ecf (diff) |
system changes
Diffstat (limited to 'macos.local/flake/system/homebrew.nix.org')
-rw-r--r-- | macos.local/flake/system/homebrew.nix.org | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/macos.local/flake/system/homebrew.nix.org b/macos.local/flake/system/homebrew.nix.org new file mode 100644 index 0000000..6a65114 --- /dev/null +++ b/macos.local/flake/system/homebrew.nix.org @@ -0,0 +1,118 @@ +#+title: Homebrew Configuration + +Set up Homebrew. I disable the quarantine automatically and ensure that the state of Homebrew is exactly as specified here. +#+begin_src nix + { config, pkgs, ... }: + + { + homebrew = { + enable = true; + + caskArgs.no_quarantine = true; + + global.autoUpdate = false; + onActivation = { + autoUpdate = true; + cleanup = "zap"; + upgrade = true; + }; + + taps = [ + "camillescholtz/formulae" + "d12frosted/emacs-plus" + "homebrew/bundle" + "homebrew/cask-fonts" + "homebrew/cask-versions" + "homebrew/services" + "jorgelbg/tap" + "osx-cross/avr" + ]; + + brews = [ + # emacs is handled better by homebrew on mac + { + name = "emacs-plus@30"; + args = [ + "with-native-comp" + "with-imagemagick" + "with-xwidgets" + "with-mailutils" + "with-ctags" + "with-retro-emacs-logo-icon" + ]; + } + + # problematic nix builds + "choose-gui" # nix version fails to build + "clang-format" # nix version screws up clang setup + "openjdk" # there's really no jdk for mac from nix? + "pinentry-touchid" # no nix version + + # need for grading purposes + "avrdude" + "open-mpi" + "open-ocd" + "osx-cross/avr/avr-binutils" + "osx-cross/avr/avarice" + "osx-cross/avr/avr-gcc@14" + + # needed for pdf-tools for emacs + "autoconf" + "automake" + "pkg-config" + "poppler" + + # required by emacs-plus@30 + "imagemagick" + "jansson" + "jpeg" + "libgccjit" + "librsvg" + "zlib" + + "mailutils" + "tree-sitter" + + # required by pinentry-touchid + "libassuan@2" + "gnupg" + "pinentry-mac" + ]; + + # homebrew handles graphical applications better than nix + casks = [ + "audacity" + "blender" + "cabal" + "calibre" + "desmume" + "discord" + "dwarf-fortress-lmp" + "firefox" + "gcc-arm-embedded" + "ghostty" + "gimp" + "godot" + "gzdoom" + "inkscape" + "krita" + "librewolf" + "multimc" + "obs" + "openemu" + "openmw" + "pokemon-showdown" + "proton-mail-bridge" + "protonvpn" + "qbittorrent" + "rar" + "syncthing" + "thunderbird" + "tor-browser" + "vlc" + "whisky" + "zotero" + ]; + }; + } +#+end_src |