Add openrazer-daemon

Preinstalls the drivers and deamons for razer hardware.

Closes #416
This commit is contained in:
Hadi Chokr
2025-11-12 20:06:12 +00:00
parent 72c11b9222
commit 7f3f03a19f
4 changed files with 15 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ Packages=archlinux-keyring
linux
linux-atm
linux-firmware
linux-headers # For DKMS
mkinitcpio
mkinitcpio-systemd-tool
noto-fonts

View File

@@ -21,6 +21,7 @@ Packages=acsccid # ACS CCID smart card readers
tpm2-tss # TPM support
tuned-ppd # Power profiles
udev-hid-bpf # Many drawing tablets
openrazer-daemon # OpenRazer Drivers etc. for Razer hardware
xfsprogs # Manipulating XFS filesystems
yubikey-full-disk-encryption # Support for unlocking a FDE LUKS partition with Yubikey hardware authenticators
yubikey-manager # CLI tools for managing Yubikey hardware authenticators

View File

@@ -18,6 +18,13 @@ if [ -z "$kernel_version" ]; then
exit 1
fi
# Ensure all DKMS modules are built for this kernel before we generate the initramfs
if ! dkms autoinstall -k "$kernel_version"; then
echo "Error: DKMS autoinstall failed" >&2
exit 1
fi
# NOTE: plymouth MUST be after systemd as per the wiki!
cat <<- EOF > mkinitcpio.conf
MODULES=(overlay)

View File

@@ -126,6 +126,12 @@ rm -rf /boot/*
## Don't expose any X11 sessions; we're all-in on Wayland.
rm -rf /usr/share/xsessions/
## Get rid of the beefy Kernel Headers as DKMS happens at build time and after that is useless
rm -rf \
/usr/lib/modules/*/build \
/usr/lib/modules/*/vdso \
/usr/src/*
## Replace Falkon with Firefox as the default browser, since that's what we pre-install.
sed -i 's/org.kde.falkon.desktop/org.mozilla.firefox.desktop/' /usr/share/applications/kde-mimeapps.list