diff --git a/.chezmoiscripts/run_onchange_before_10-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_10-install-packages.sh.tmpl index d4de298..34f0028 100755 --- a/.chezmoiscripts/run_onchange_before_10-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_10-install-packages.sh.tmpl @@ -1,12 +1,9 @@ #!/bin/sh -{{ if eq .chezmoi.osRelease.id "nixos" }} -exit 0 -{{ end }} - set -euo pipefail -echo "Installing packages..." +echo "Installing native packages..." +# 1. Arch-based {{ if or (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "cachyos") }} sudo pacman -Sy --noconfirm @@ -49,4 +46,10 @@ if [[ ${#aur_pkgs[@]} -gt 0 ]]; then fi {{ end }} +# 2. NixOS +{{ if eq .chezmoi.osRelease.id "nixos" }} +exit 0 +{{ end }} + + echo "Done"