fix: added missing dotfiles and removed unnecessary files/packages
This commit is contained in:
@@ -9,18 +9,31 @@ DISTRO_ID="$(chezmoi data --format=json 2>/dev/null | jq -r '.chezmoi.osRelease.
|
||||
SRC="$(chezmoi source-path)"
|
||||
echo ">>> [configure] distro=$DISTRO_ID, system=$SYS, source=$SRC"
|
||||
|
||||
services=(
|
||||
bluetooth
|
||||
cups
|
||||
greetd
|
||||
)
|
||||
|
||||
case "$DISTRO_ID" in
|
||||
arch)
|
||||
# pacman.conf — everyone on arch
|
||||
echo ">>> [configure] applying pacman.conf"
|
||||
sudo install -m644 "$SRC/assets/pacman.conf" /etc/pacman.conf
|
||||
|
||||
# MAKEFLAGS — everyone on arch
|
||||
echo ">>> [configure] applying pacman.conf"
|
||||
sudo sed -i 's/^#MAKEFLAGS=/MAKEFLAGS="-j'"$(nproc)"'"/' /etc/makepkg.conf
|
||||
|
||||
if [ "$SYS" != "server" ]; then
|
||||
sudo systemctl enable bluetooth cups greetd
|
||||
echo ">>> [configure] enabling services"
|
||||
for service in "${services[@]}"; do
|
||||
if sudo systemctl enable "$service"; then
|
||||
echo "✓ $service: success"
|
||||
else
|
||||
echo "✗ $service: failed"
|
||||
fi
|
||||
done
|
||||
|
||||
# minegrub GRUB theme (best-effort)
|
||||
echo ">>> [configure] applying grub-theme"
|
||||
if [ -d /boot/grub/themes ]; then
|
||||
sudo mkdir -p /boot/grub/themes/minegrub
|
||||
sudo cp -r "$SRC/assets/minegrub/." /boot/grub/themes/minegrub/
|
||||
@@ -30,13 +43,13 @@ case "$DISTRO_ID" in
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
else
|
||||
echo ">>> [configure] /boot/grub/themes missing — skipping minegrub install"
|
||||
echo ">>> [configure] /boot/grub/themes missing — skipping grub theme install"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
echo ">>> [ubuntu] no configure system"
|
||||
echo ">>> [configure] ubuntu no configure system"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user