From 460d1f7f98f906642ba6b36fe8d3ac06f236d9ad Mon Sep 17 00:00:00 2001 From: Marcus Crane Date: Mon, 28 Oct 2024 15:33:05 +1300 Subject: [PATCH] Split Linux install files into Debian and Arch Signed-off-by: Marcus Crane --- run_once_01_packages-linux-arch.sh.tmpl | 36 +++++++++++++++++++ ... run_once_01_packages-linux-debian.sh.tmpl | 0 2 files changed, 36 insertions(+) create mode 100644 run_once_01_packages-linux-arch.sh.tmpl rename run_once_01_packages-linux.sh.tmpl => run_once_01_packages-linux-debian.sh.tmpl (100%) diff --git a/run_once_01_packages-linux-arch.sh.tmpl b/run_once_01_packages-linux-arch.sh.tmpl new file mode 100644 index 0000000..1f3864c --- /dev/null +++ b/run_once_01_packages-linux-arch.sh.tmpl @@ -0,0 +1,36 @@ +{{- if (eq .chezmoi.os "linux") -}} +{{- if eq .chezmoi.osRelease.idLike "arch" -}} +#!/usr/bin/env bash + +set -eufo pipefail + +{{ $packages := list + "bash" + "ca-certificates" + "curl" + "ffmpeg" + "fzf" + "gcc" + "git" + "gnupg" + "grep" + "gtk3" + "gzip" + "iproute2" + "neofetch" + "openssl" + "readline" + "tcpdump" + "vlc" + "zlib" + "zsh" +}} + +sudo pacman -Syu + +sudo pacman -Su {{ $packages | uniq }} + +echo "[ ~ ] linux packages have been installed" + +{{ end -}} +{{ end -}} diff --git a/run_once_01_packages-linux.sh.tmpl b/run_once_01_packages-linux-debian.sh.tmpl similarity index 100% rename from run_once_01_packages-linux.sh.tmpl rename to run_once_01_packages-linux-debian.sh.tmpl