Use global Brewfile

bladee.bsky.social 8c1e2b1c 2d69dc80

verified
-18
.chezmoidata/packages.yaml
···
-
packages:
-
linux:
-
brew:
-
- atuin
-
- bat
-
- chezmoi
-
- fd
-
- gcc
-
- git
-
- git-credential-libsecret
-
- git-credential-oauth
-
- helix
-
- htop
-
- jj
-
- restic
-
- ripgrep
-
- rustup
-
- uv
+116
dot_config/homebrew/Brewfile.tmpl
···
+
# Packages to install on all machines.
+
brew "aria2"
+
brew "atuin"
+
brew "bat"
+
brew "chezmoi"
+
brew "curl"
+
brew "dua-cli"
+
brew "fd"
+
brew "ffmpeg"
+
brew "gcc"
+
brew "git"
+
brew "helix"
+
brew "htop"
+
brew "jj"
+
brew "just"
+
brew "lnav"
+
brew "ollama"
+
brew "python@3.14"
+
brew "ripgrep"
+
brew "rustup"
+
brew "scrcpy"
+
brew "uv"
+
brew "wget"
+
+
+
{{ if eq .chezmoi.os "linux" -}}
+
# Packages to install on Linux machines.
+
brew "git-credential-libsecret"
+
brew "git-credential-oauth"
+
# TODO: How to specify flatpak file?
+
# flatpak "com.bitwig.BitwigStudio", remote: "bitwigstudio-origin"
+
flatpak "com.calibre_ebook.calibre"
+
flatpak "com.discordapp.Discord"
+
flatpak "com.fastmail.Fastmail"
+
flatpak "com.github.johnfactotum.Foliate"
+
flatpak "com.github.tchx84.Flatseal"
+
flatpak "com.google.Chrome"
+
flatpak "com.mattjakeman.ExtensionManager"
+
flatpak "com.obsproject.Studio"
+
flatpak "com.plexamp.Plexamp"
+
flatpak "com.todoist.Todoist"
+
flatpak "com.valvesoftware.Steam"
+
flatpak "com.valvesoftware.SteamLink"
+
flatpak "com.visualstudio.code"
+
flatpak "io.github.nozwock.Packet"
+
flatpak "io.mpv.Mpv"
+
flatpak "net.nokyan.Resources"
+
flatpak "org.audacityteam.Audacity"
+
flatpak "org.bunkus.mkvtoolnix-gui"
+
flatpak "org.cockpit_project.CockpitClient"
+
flatpak "org.darktable.Darktable"
+
flatpak "org.freac.freac"
+
flatpak "org.gimp.GIMP"
+
flatpak "org.gnome.Boxes"
+
flatpak "org.gnome.Calculator"
+
flatpak "org.gnome.Decibels"
+
flatpak "org.gnome.Loupe"
+
flatpak "org.gnome.Papers"
+
flatpak "org.gnome.Showtime"
+
flatpak "org.gnome.SimpleScan"
+
flatpak "org.gnome.Snapshot"
+
flatpak "org.gnome.SoundRecorder"
+
flatpak "org.gnome.TextEditor"
+
flatpak "org.gnome.Weather"
+
flatpak "org.gnome.clocks"
+
flatpak "org.libreoffice.LibreOffice"
+
flatpak "org.musicbrainz.Picard"
+
flatpak "org.torproject.torbrowser-launcher"
+
flatpak "org.wireshark.Wireshark"
+
flatpak "tv.plex.PlexDesktop"
+
{{ end -}}
+
+
+
{{ if eq .chezmoi.os "darwin" -}}
+
# Packages to install on macOS machines.
+
brew "cocoapods"
+
brew "coreutils"
+
brew "fish"
+
brew "lima"
+
brew "openssh"
+
brew "podman"
+
cask "1password"
+
cask "1password-cli"
+
cask "android-platform-tools"
+
cask "imhex"
+
cask "insomnia"
+
cask "jetbrains-toolbox"
+
cask "mitmproxy"
+
cask "notion"
+
cask "todoist-app"
+
cask "utm"
+
cask "visual-studio-code"
+
cask "wine-stable"
+
cask "wireshark-app"
+
cask "zed"
+
+
{{ if eq .machineType "work" }}
+
cask "picoscope"
+
{{ end -}}
+
{{ end -}}
+
+
+
{{ if eq .machineType "personal" -}}
+
# Packages to install on personal machines.
+
brew "cdrtools"
+
brew "gallery-dl"
+
brew "gemini-cli"
+
brew "restic"
+
brew "yt-dlp"
+
{{ end -}}
+
+
+
{{ if eq .machineType "work" -}}
+
# Packages to install on work machines.
+
brew "firebase-cli"
+
{{ end -}}
+3
run_brew-bundle.sh
···
+
#!/usr/bin/bash
+
+
brew bundle install --global --no-upgrade
-9
run_onchange_linux-install-packages.sh.tmpl
···
-
{{ if eq .chezmoi.os "linux" -}}
-
#!/usr/bin/bash
-
-
brew bundle --file=/dev/stdin <<EOF
-
{{ range .packages.linux.brew -}}
-
brew {{ . | quote }}
-
{{ end -}}
-
EOF
-
{{ end -}}