#!/bin/bash
set -euo pipefail

echo "=== GNOME Installer ==="

echo "[+] Installing GNOME..."
sudo pacman -S --noconfirm --needed \
    gnome \
    gnome-tweaks \
    xdg-desktop-portal-gnome \
    pipewire wireplumber pipewire-alsa pipewire-jack pipewire-pulse \
    networkmanager \
    flatpak

echo "[+] Enabling services..."
sudo systemctl enable gdm.service
sudo systemctl enable NetworkManager.service

echo "=== GNOME installation complete. Reboot to start. ==="
