1
0
Fork 0

Add home/.chezmoidata/packages.yaml

Add home/.chezmoidata/units.yaml
Add home/packages.sh
Remove home/units.sh
Add home/units.sh
This commit is contained in:
Massaki Archambault 2024-07-11 23:11:26 -04:00
parent 70f71f3129
commit 8120ca9476
5 changed files with 134 additions and 5 deletions

View File

@ -0,0 +1,96 @@
packages:
arch:
base:
- etc-update
- pikaur
# archive
- 7-zip-full
- atool
- unrar
- unzip
- zip
# tools
- bind # for `dig`, `nslookup`
- curl
- dos2unix
- fzf
- github-cli
- glances
- keychain
- less
- lm_sensors
- lsd
- neofetch
- neovim
- pass
- sudo
- thefuck
- tree
- vim
- zsh
# devops
- ansible
- aws-cli-v2
- docker
- helm
- k9s
- kubecolor
- kubectl
- kustomize
- terraform
# language / runtimes
- go
- python-pip
- python-virtualenv
# scripting utils
- dialog
- jq
- pv
- python-pyfiglet
base_desktop:
- alacritty
- dex
- feh
- gammastep
- grim
- libappindicator-gtk3
- mako
- qt5-wayland
- qt6-wayland
- sway
- swayidle
- swaylock
- wob
- xdg-desktop-portal-wlr
- ydotool
# pipewire
- pipewire-jack
- pipewire-pulse
- wireplumber
# fonts
- nerd-fonts-git
- otf-font-awesome-5
- ttf-droid
- ttf-google-fonts-git
- ttf-hack
- ttf-liberation
- ttf-material-design-icons-git
- ttf-ms-win10-auto
# theming
- matcha-gtk-theme
- mint-y-icons
# xorg
- xorg-xauth
- xorg-xhost
- xorg-xwayland

View File

@ -0,0 +1,9 @@
units:
system:
- docker.socket
- sshd.service
user:
- swayidle.service
- wob.service
- mako.service
- gammastep

View File

@ -0,0 +1,19 @@
#!/bin/bash
{{- if eq .chezmoi.osRelease.id "arch" }}
sudo pacman -Sy
if ! which pikaur >/dev/null; then
git clone --depth 1 https://aur.archlinux.org/pikaur.git /tmp/pikaur
cd /tmp/pikaur
makepkg -si --noconfirm
rm -rf /tmp/pikaur
fi
pikaur -S --needed --noconfirm {{ .packages.arch.base | join " " }}
{{- if not (contains .chezmoi.kernel.osrelease "WSL") }}
pikaur -S --needed --noconfirm {{ .packages.arch.base_desktop | join " " }}
{{- end }}
{{- end }}

View File

@ -1,5 +0,0 @@
#!/bin/bash
systemctl --user daemon-reload
systemctl --user enable --now swayidle.service
systemctl --user enable --now wob.service
systemctl --user enable --now mako.service

View File

@ -0,0 +1,10 @@
#!/bin/bash
sudo systemctl daemon-reload
{{ range .units.system -}}
sudo systemctl enable --now {{ . }} || true
{{ end -}}
systemctl --user daemon-reload
{{ range .units.user -}}
systemctl --user enable --now {{ . }} || true
{{ end -}}