NixOS is the endgame to Distro Hopping
Find a file
2023-02-11 23:28:22 -05:00
pkg.list pkg list 2023-02-11 21:39:35 -05:00
README.md boom 2023-02-11 23:28:22 -05:00

Lenovo Yoga 6 13ALC7

This repo is a documentation of how I installed Arch and got all the drivers for the Yoga 6, to make it work as if it was native. Since I got the touchpad issues, I'll need this once I get it fixed.

Local Pacman repo

The latest linux kernels do not have the laptop's Wifi card's drivers, therefore I'll need a custom repository to complete the ach installation.

Repo Packages
base
linux-firmware
linux-zen
linux-zen-headers
amd-ucode

patch
dkms
kmod
rtw89-dkms-git
btrfs-progs

grub
os-prober
ntfs-3g
efibootmgr
efivar

iwd
nano
sudo
texinfo
man-db


On a separate Arch installation with Wifi access, enter the following commands in a clean directory in a USB key :

git clone https://aur.archlinux.org/rtw89-dkms-git.git 
cd rtw89-dkms-git
makepkg
mv *.pkg.tar.zst ..
cd .. && sudo rm -r rtw89-dkms-git

mkdir /tmp/blankdb

pacman -Syw --cachedir . --dbpath /tmp/blankdb base linux-firmware linux-zen linux-zen-headers amd-ucode patch dkms kmod btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages

repo-add ./custom.db.tar.gz ./*



Archinstaller

loadkeys ca

Partionning with cryptsetup

Encrypting root partition

# cryptsetup -y -v luksFormat --type luks1 /dev/nvme0n1p?
# cryptsetup open /dev/nvme0n1p? root
# mkfs.btrfs /dev/mapper/root
# mount /dev/mapper/root /mnt

Mounting boot :

# mount --mkdir /dev/nvme0n1p1 /mnt/boot

Edit /etc/mkinitcpio.conf

BINARIES=(btrfs)

HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems fsck)

then run mkinitpcio -P

Edit /etc/default/grub

cryptdevice=UUID=??????:root root=/dev/mapper/root

make sure the UUID is the actual partition inside the LUKS container and run grub-mkconfig -o /boot/grub/grub.cfg

pacstrap /*/ base linux-firmware linux-zen linux-zen-headers amd-ucode patch dkms kmod rtw89-dkms-git btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages

install yay

htop 3.2.2-1 iwgtk 0.9-1 pkgfile 21-2 plocate 1.1.18-1 rsync 3.2.7-3 tailscale 1.36.1-1 tmux 3.3_a-3 usbutils 015-2 wget 1.21.3-1 git 2.39.1-1 curl 7.87.0-3 devtools 20230105-1