add linux packages

This commit is contained in:
Yuan Chiu 2025-04-23 20:13:59 +08:00
parent df18cdad71
commit 992d1f0bbb
3 changed files with 46 additions and 1 deletions

View File

@ -2,11 +2,13 @@
brews = [
'chezmoi',
'git',
'zsh',
'vim',
'lsix',
'eza',
'grc',
'zellij',
'ranger',
'cmake',
'python',
'go',
@ -18,4 +20,28 @@ casks = [
'iterm2',
'alacritty',
'macvim',
]
[packages.linux.manjaro]
pacman = [
'chezmoi',
'yay',
'base-devel',
'fakeroot',
'gcc',
'cmake',
'lsix',
'eza',
'grc',
'zellij',
'ranger',
'gvim',
'python',
'go',
'nodejs',
'jdk-openjdk',
]
aur = [
'alacritty-sixel-git',
]

View File

@ -1,5 +1,5 @@
{{ if eq .chezmoi.os "darwin" -}}
#!/bin/bash
#!/bin/sh
# Install Homebrew
command -v brew >/dev/null 2>&1 || \

View File

@ -0,0 +1,19 @@
{{ if eq .chezmoi.os "linux" -}}
{{ if eq .chezmoi.osRelease.id "manjaro" -}}
#!/usr/bin/env bash
{{ range .packages.linux.manjaro.pacman -}}
sudo pacman -S --needed --noconfirm {{ . | quote }}
{{ end -}}
{{ range .packages.linux.manjaro.aur -}}
yay -S --needed --noconfirm {{ . | quote }}
{{ end -}}
{{ end -}}
{{ end -}}