builder/adapters/kde-finalize.sh

27 lines
1.6 KiB
Bash

# Clean Core + KDE composition; existing-machine rebase is a separate workflow.
systemctl --root=/job/core disable systemd-networkd archipelago-firstboot@tty1 archipelago-firstboot@ttyS0 getty@tty1
systemctl --root=/job/core enable NetworkManager sddm plasma-setup bluetooth cups.socket power-profiles-daemon \
archipelago-kde-onboarding.timer archipelago-software-refresh.timer
systemctl --root=/job/core set-default graphical.target
mkdir -p /job/core/etc/sddm.conf.d
cat > /job/core/etc/sddm.conf.d/20-archipelago-wayland.conf <<'SDDM'
[General]
DisplayServer=wayland
[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1
SDDM
mkdir -p /job/core/etc/NetworkManager/conf.d /job/core/etc/sudoers.d /job/core/etc/containers /job/core/etc/archipelago
printf '[main]\ndns=systemd-resolved\n' > /job/core/etc/NetworkManager/conf.d/20-archipelago.conf
printf '%%wheel ALL=(ALL:ALL) ALL\n' > /job/core/etc/sudoers.d/10-archipelago-wheel
chmod 0440 /job/core/etc/sudoers.d/10-archipelago-wheel
arch-chroot /job/core visudo -c
mkdir -p /job/core/etc/plymouth
printf '[Daemon]\nTheme=spinner\n' > /job/core/etc/plymouth/plymouthd.conf
test -f /job/core/usr/share/plymouth/themes/spinner/spinner.plymouth
test ! -e /job/core/etc/plasma-setup-done
cp /job/core/usr/share/archipelago/desktop/toolbox.conf /job/core/etc/containers/toolbox.conf
arch-chroot /job/core glib-compile-schemas /usr/share/glib-2.0/schemas
arch-chroot /job/core update-desktop-database /usr/share/applications
arch-chroot /job/core update-mime-database /usr/share/mime
mkdir -p /job/core/etc/systemd/system
ln -s /dev/null /job/core/etc/systemd/system/packagekit.service