Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 0 additions & 102 deletions home/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,108 +32,6 @@ data:
# Machine-specific flags
common:
defaultShell: zsh
packages:
brewTaps:
- jesseduffield/lazygit
- zunit-zsh/zunit
brewCaskTaps:
brew:
- act
- antidote
- atuin
- bat
- btop
- cheat
- dive
- duckdb
- eza
- fastfetch
- fd
- figlet
- fzf
- gh
- git-delta
- go
- grep
- htop
- humanlog
- jesseduffield/lazygit/lazygit
- jq
- lazydocker
- neovim
- nmap
- nvim
- nvm
- rclone
- ripgrep
- screen
- starship
- tig
- tmux
- vim
- wget
- yazi
- yq
- zoxide
- zsh
brewCask:
- firefox
- gimp
- ghostty
- spotify
- visual-studio-code
- vlc
flatpak:
- com.brave.Browser
- com.discordapp.Discord
- com.google.Chrome
- com.mattjakeman.ExtensionManager
- com.slack.Slack
- com.spotify.Client
- com.visualstudio.code
- md.obsidian.Obsidian
- org.gimp.GIMP
- org.localsend.localsend_app
- org.mozilla.firefox
- org.telegram.desktop
- org.videolan.VLC
- us.zoom.Zoom
hosts:
ci:
packages:
brew:
- hello
coffee-sponge:
packages:
flatpak:
- com.valvesoftware.Steam
grease-monkey:
packages:
brew:
- tailscale
flatpak:
mac-4981:
packages:
brew:
- awscli
- awscli-local
- aws-sam-cli
- trivy
brewTaps:
brewCaskTaps:
brewCask:
- caffeine
- gas-mask
- jordanbaird-ice
- m-cli
- mas
- microsoft-edge
- obsidian
- raycast
- rectangle
- slack
- stats
- visual-studio-code
env:
OS: "{{ .chezmoi.os }}"
OS_DISTRO: "{{ $osid }}"
Expand Down
98 changes: 98 additions & 0 deletions home/.chezmoidata/packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
common:
brewTaps:
- jesseduffield/lazygit
- zunit-zsh/zunit
brewCaskTaps:
brew:
- act
- antidote
- atuin
- bat
- btop
- cheat
- dive
- duckdb
- eza
- fastfetch
- fd
- figlet
- fzf
- gh
- git-delta
- go
- grep
- htop
- humanlog
- jesseduffield/lazygit/lazygit
- jq
- lazydocker
- neovim
- nmap
- nvim
- nvm
- rclone
- ripgrep
- screen
- starship
- tig
- tmux
- vim
- wget
- yazi
- yq
- zoxide
- zsh
brewCask:
- firefox
- gimp
- ghostty
- spotify
- visual-studio-code
- vlc
flatpak:
- com.brave.Browser
- com.discordapp.Discord
- com.google.Chrome
- com.mattjakeman.ExtensionManager
- com.slack.Slack
- com.spotify.Client
- com.visualstudio.code
- md.obsidian.Obsidian
- org.gimp.GIMP
- org.localsend.localsend_app
- org.mozilla.firefox
- org.telegram.desktop
- org.videolan.VLC
- us.zoom.Zoom
hosts:
ci:
brew:
- hello
coffee-sponge:
flatpak:
- com.valvesoftware.Steam
grease-monkey:
brew:
- tailscale
flatpak:
mac-4981:
brew:
- awscli
- awscli-local
- aws-sam-cli
- trivy
brewTaps:
brewCaskTaps:
brewCask:
- caffeine
- gas-mask
- jordanbaird-ice
- m-cli
- mas
- microsoft-edge
- obsidian
- raycast
- rectangle
- slack
- stats
- visual-studio-code
22 changes: 11 additions & 11 deletions home/.chezmoitemplates/brew/base.brew.tmpl
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
## Common packages
{{- $commonConfig := .common }}
{{- if hasKey $commonConfig.packages "brewTaps" }}
{{- range $commonConfig.packages.brewTaps }}
{{- $commonConfig := .packages.common }}
{{- if hasKey $commonConfig "brewTaps" }}
{{- range $commonConfig.brewTaps }}
tap "{{ . }}"
{{- end }}
{{- end }}
{{- if hasKey $commonConfig.packages "brew" }}
{{- range $commonConfig.packages.brew }}
{{- if hasKey $commonConfig "brew" }}
{{- range $commonConfig.brew }}
brew "{{ . }}"
{{- end }}
{{- end }}

## Machine Specific packages: {{- .hostname }}
{{- $hostConfig := get .hosts .hostname }}
{{- if (and (hasKey $hostConfig "packages") (hasKey $hostConfig.packages "brewTaps")) }}
{{- range $hostConfig.packages.brewTaps }}
{{- $hostConfig := get .packages.hosts .hostname }}
{{- if (hasKey $hostConfig "brewTaps") }}
{{- range $hostConfig.brewTaps }}
tap "{{ . }}"
{{- end }}
{{- end }}
{{- if (and (hasKey $hostConfig "packages") (hasKey $hostConfig.packages "brew")) }}
{{- range $hostConfig.packages.brew }}
{{- if (hasKey $hostConfig "brew") }}
{{- range $hostConfig.brew }}
brew "{{ . }}"
{{- end }}
{{- end }}
{{- end }}
22 changes: 11 additions & 11 deletions home/.chezmoitemplates/brew/cask.brew.tmpl
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{{ if eq .chezmoi.config.env.OS "darwin" }}
## Common casks
{{- $commonConfig := .common }}
{{- if hasKey $commonConfig.packages "brewCaskTaps" }}
{{- range $commonConfig.packages.brewCaskTaps }}
{{- $commonConfig := .packages.common }}
{{- if hasKey $commonConfig "brewCaskTaps" }}
{{- range $commonConfig.brewCaskTaps }}
tap "{{ . }}"
{{- end }}
{{- end }}
{{- if hasKey $commonConfig.packages "brewCask" }}
{{- range $commonConfig.packages.brewCask }}
{{- if hasKey $commonConfig "brewCask" }}
{{- range $commonConfig.brewCask }}
cask "{{ . }}"
{{- end }}
{{- end }}

## Machine Specific casks: {{- .hostname }}
{{- $hostConfig := get .hosts .hostname }}
{{- if (and (hasKey $hostConfig "packages") (hasKey $hostConfig.packages "brewCaskTaps")) }}
{{- range $hostConfig.packages.brewCaskTaps }}
{{- $hostConfig := get .packages.hosts .hostname }}
{{- if (hasKey $hostConfig "brewCaskTaps") }}
{{- range $hostConfig.brewCaskTaps }}
tap "{{ . }}"
{{- end }}
{{- end }}
{{- if (and (hasKey $hostConfig "packages") (hasKey $hostConfig.packages "brewCask")) }}
{{- range $hostConfig.packages.brewCask }}
{{- if (hasKey $hostConfig "brewCask") }}
{{- range $hostConfig.brewCask }}
cask "{{ . }}"
{{- end }}
{{- end }}

{{- end }}
{{- end }}
14 changes: 7 additions & 7 deletions home/.chezmoitemplates/brew/flatpak.brew.tmpl
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{{ if eq .chezmoi.config.env.OS "linux" }}
## Common flatpaks
{{- $commonConfig := .common }}
{{- if hasKey $commonConfig.packages "flatpak" }}
{{- range $commonConfig.packages.flatpak }}
{{- $commonConfig := .packages.common }}
{{- if hasKey $commonConfig "flatpak" }}
{{- range $commonConfig.flatpak }}
flatpak "{{ . }}"
{{- end }}
{{- end }}

## Machine Specific flatpaks: {{- .hostname }}
{{- $hostConfig := get .hosts .hostname }}
{{- if (and (hasKey $hostConfig "packages") (hasKey $hostConfig.packages "flatpak")) }}
{{- range $hostConfig.packages.flatpak }}
{{- $hostConfig := get .packages.hosts .hostname }}
{{- if (hasKey $hostConfig "flatpak") }}
{{- range $hostConfig.flatpak }}
flatpak "{{ . }}"
{{- end }}
{{- end }}
{{- else }}
# Flatpak is not available or not executable on this system, skipping flatpak packages.
{{- end }}
{{- end }}
Loading