✨ build(pkgs): Finally automate packagelists
This commit is contained in:
parent
a7f501cc49
commit
86853d1a10
4 changed files with 54 additions and 2 deletions
16
.chezmoidata/arch-packages.toml
Normal file
16
.chezmoidata/arch-packages.toml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[packages.arch]
|
||||||
|
exclude = [
|
||||||
|
"amd-ucode",
|
||||||
|
"lib32-gamemode",
|
||||||
|
"lib32-vkd3d",
|
||||||
|
"libva-mesa-driver",
|
||||||
|
"vkd3d",
|
||||||
|
"vulkan-radeon",
|
||||||
|
"vulkan-tools",
|
||||||
|
"xf86-video-amdgpu",
|
||||||
|
"libva-nvidia-driver-git",
|
||||||
|
"nvidia",
|
||||||
|
"nvidia-settings",
|
||||||
|
"xf86-video-nouveau",
|
||||||
|
"steamlink",
|
||||||
|
]
|
|
@ -16,8 +16,13 @@ bluez-utils
|
||||||
browsh-bin
|
browsh-bin
|
||||||
btop
|
btop
|
||||||
catppuccin-cursors-macchiato
|
catppuccin-cursors-macchiato
|
||||||
|
catppuccin-frappe-grub-theme-git
|
||||||
catppuccin-gtk-theme-macchiato
|
catppuccin-gtk-theme-macchiato
|
||||||
|
catppuccin-latte-grub-theme-git
|
||||||
|
catppuccin-macchiato-grub-theme-git
|
||||||
|
catppuccin-mocha-grub-theme-git
|
||||||
cheat-bin
|
cheat-bin
|
||||||
|
chezmoi
|
||||||
cmake
|
cmake
|
||||||
colord
|
colord
|
||||||
composer
|
composer
|
||||||
|
@ -64,6 +69,7 @@ libheif
|
||||||
libmythes
|
libmythes
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
libtransmission
|
libtransmission
|
||||||
|
libva-nvidia-driver-git
|
||||||
linux
|
linux
|
||||||
linux-firmware
|
linux-firmware
|
||||||
linux-firmware-qlogic
|
linux-firmware-qlogic
|
||||||
|
@ -92,6 +98,8 @@ networkmanager
|
||||||
nginx
|
nginx
|
||||||
nm-connection-editor
|
nm-connection-editor
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
|
nvidia
|
||||||
|
nvidia-settings
|
||||||
openrazer-daemon
|
openrazer-daemon
|
||||||
pamixer
|
pamixer
|
||||||
papirus-folders-catppuccin-git
|
papirus-folders-catppuccin-git
|
||||||
|
@ -117,7 +125,6 @@ python-pipenv
|
||||||
python-pipx
|
python-pipx
|
||||||
python-pynvim
|
python-pynvim
|
||||||
qt5-graphicaleffects
|
qt5-graphicaleffects
|
||||||
qt5-quickcontrols2
|
|
||||||
qt5-svg
|
qt5-svg
|
||||||
qt5ct
|
qt5ct
|
||||||
qt6-wayland
|
qt6-wayland
|
||||||
|
@ -131,6 +138,7 @@ rofi-calc
|
||||||
rsync
|
rsync
|
||||||
rust
|
rust
|
||||||
sddm
|
sddm
|
||||||
|
sddm-theme-catppuccin-git
|
||||||
shfmt
|
shfmt
|
||||||
smbclient
|
smbclient
|
||||||
starship
|
starship
|
||||||
|
@ -173,6 +181,7 @@ xclip
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
|
xf86-video-nouveau
|
||||||
xfce4-settings
|
xfce4-settings
|
||||||
xorg-server
|
xorg-server
|
||||||
xorg-server-xephyr
|
xorg-server-xephyr
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
{{ if eq .chezmoi.osRelease.id "arch" -}}
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
{{ range (glob ".config/packages/arch?*") -}}
|
||||||
|
# {{ include (joinPath "dot_config/packages/" (base .)) | sha256sum }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
set file (\
|
||||||
|
find . -type f -iname "arch*" -print0\
|
||||||
|
| xargs -0 ls -tr\
|
||||||
|
| tail -n 1\
|
||||||
|
| string sub -s 3\
|
||||||
|
)
|
||||||
|
|
||||||
|
cp $file arch
|
||||||
|
|
||||||
|
{{ range .packages.arch.exclude -}}
|
||||||
|
sed -i '/{{ . }}/d' arch
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
if ! test "{{ .chezmoi.hostname }}" = "$file"
|
||||||
|
set_color yellow && echo "Package list has changed, please reinstall!"
|
||||||
|
copyq copy "yay -S --needed - < ~/.config/packages/arch" &>/dev/null \
|
||||||
|
&& echo "(Command copied)"
|
||||||
|
set_color normal
|
||||||
|
end
|
||||||
|
{{ end -}}
|
|
@ -11,4 +11,4 @@
|
||||||
# Custom commands
|
# Custom commands
|
||||||
[commands]
|
[commands]
|
||||||
"Fish Shell Completions" = "fish_update_completions"
|
"Fish Shell Completions" = "fish_update_completions"
|
||||||
"Update package list" = "yay -Qeq > ~/.config/packages/{{ .chezmoi.hostname }} && set_color green && printf '%s' && set_color normal && printf '%s' ' done\n'"
|
"Update package list" = "yay -Qeq > {{ joinPath .chezmoi.sourceDir "dot_config/packages/" .chezmoi.hostname }} && set_color green && printf '%s' && set_color normal && printf '%s' ' done\n'"
|
||||||
|
|
Loading…
Reference in a new issue