Skip to content

Instantly share code, notes, and snippets.

@velrest
Last active February 17, 2025 10:35
Show Gist options
  • Save velrest/a0e7d378a8ad645cfa210fb5867a29ba to your computer and use it in GitHub Desktop.
Save velrest/a0e7d378a8ad645cfa210fb5867a29ba to your computer and use it in GitHub Desktop.
Installing Void Linux on Lenovo T14

Void Encryptet Setup

All of this can aslo be found in the Void Manual. Just make sure your not skipping anything :) Packages Missing?

Encryption

The main guide to follow is Full Disk Encryption.

Some special notes on LUKS2 and grub from the encryption guide:

Cryptsetup defaults to LUKS2, yet GRUB releases before 2.06 only had support for LUKS1.

LUKS2 is only partially supported by GRUB; specifically, only the PBKDF2 key derivation function is implemented, which is not >the default KDF used with LUKS2, that being Argon2i (GRUB Bug 59409). LUKS encrypted partitions using Argon2i (as well as the >other KDF) can not be decrypted. For that reason, this guide only recommends LUKS1 be used.

To use LUKS2 with grub>=2.06 we need to add the following param and remove the --type luks1 from the docs when encrypting the partition: cryptsetup luksFormat --pbkdf pbkdf2 /dev/yourpartition

Troubles with Lenovo

Intel Graphics Meteor Lake-P not working on older Kernels ~ 6.6 or so. After installing base and using xchroot:

Install a Kernel >linux6.6 (linux6.8 worked)

After installing a newer kernel: xbps-reconfigure -af

Old Kernels not working with T14:

Also when following the guides, install ALL the graphics drivers on here: https://docs.voidlinux.org/config/graphical-session/graphics-drivers/intel.html So OpenGL, Vulkan and Video Accel!

Boot

For faster booting, you can set GRUB_TIMEOUT=0 in /etc/default/grub. Make sure to run grub-install /dev/yourpartition and xbps-reconfigure -fa after.

If you create a key file to not enter the encryption password twice on boot and its not working after ubdating /etc/crypttab and /etc/dracut.conf.d/10-crypt.conf make sure to run the two seps above to reconfigure grub and initramfs.

Since GRUB has so little system resources to decrypt your volume key, you can use some tips from here to speed up boot time if you have a strong passphrase. Just make sure that when chaning the key you also add the -pbkdf pbkdf2 flag again otherwise the key wont work with GRUB.

musl setup

DRM content in Firefox:

https://info.tweetor.org/public/musl-firefox.html

Sway

Start pipewire by just putting it into your sway config. You may need libnotifyfor firefox to send notificaitons over dbus.

Screensharing and Screenshotrs

To support sway-screenshot i had to install sudo xbps-install -S jq grim slurp wl-clipboard ImageMagick

For screensharing i installed:

  • xdg-desktop-portal
  • xdg-desktop-portal-wlr
  • xdg-desktop-portal-gtk (not needed) and configured /user/share/xdg-desktop-portal/protals.conf to :
[preferred]
default=wlr

I also have the following line in my sway config for screensharing but im not sure if its actually needed: exec dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

SOF missing modules:

https://www.reddit.com/r/voidlinux/comments/rbq4ns/sof_firmware_help/

For compatibility reasons with respect to Meteor Lake /lib/firmware/intel/sof-ace-tplg must be symlinked to /lib/firmware/intel/sof-ipc4-tplg From here search for Meteor

Yubikey not working in browser

You need to install libfido2 for the Yubikey to work in browsers.

https://www.reddit.com/r/voidlinux/comments/ix73r6/u2f_key_not_working_properly/

Misc

Not sure if its needed but i installed light for screen brightness.

Fonts: $ sudo ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/

Links to help with sway: https://www.reddit.com/r/voidlinux/comments/txwr01/fresh_install_with_sway_trackpad_is_not_working/

Podman

podman requiers a /etc/timezone file so i had to sudo ln -sf /etc/localtime /etc/timezone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment