image_type="arch" name="ArchLinuxPlasma" imgver="$(date '+%Y-%m-%d')" zram="y" pre_install=() base_system() { fetch_base_system "$imageroot" "https://ca.us.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz" } packages=( "sudo" "plasma" "grub" "konsole" "dolphin" "ark" "bluez" "bluez-utils" "xorg-xrandr" "xorg-xinput" "qt5-virtualkeyboard" "vulkan-freedreno" "networkmanager" ) post_install() { log "Enable Network Manager service" chroot "$imageroot" systemctl enable NetworkManager log "Enable SDDM service" chroot "$imageroot" systemctl enable sddm log "Enable bluetooth service" chroot "$imageroot" systemctl enable bluetooth log "Configure SDDM" cp ./drop/sddm.nabu.Xsetup "$imageroot/usr/share/sddm/scripts/Xsetup" cp ./drop/sddm.nabu.conf "$imageroot/usr/lib/sddm/sddm.conf.d/nabu.conf" chmod 755 "$imageroot/usr/share/sddm/scripts/Xsetup" chmod 644 "$imageroot/usr/lib/sddm/sddm.conf.d/nabu.conf" log "Generating en_US locale" sed -i "s/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" "$imageroot/etc/locale.gen" chroot "$imageroot" locale-gen echo "LANG=en_US.UTF-8" > "$imageroot/etc/locale.conf" }