Introduction
How the laptop underneath the desktop is set up, so it can't easily break, stays cool, and shares a drive with Windows.
MvpDots is the desktop. This is the system underneath it: the decisions and config files that make an Arch-based laptop (EndeavourOS here) safe to update, cool and quiet, and friendly with Windows.
The machine: a 15" laptop with a 12th-gen Intel i5, 16 GB RAM, Intel graphics + an NVIDIA RTX 2050 (muxless hybrid), an NVMe SSD, dual boot with Windows.
Disk layout
Btrfs subvolumes, compression, a swapfile that works with snapshots.
Snapshots
Every update can be undone from the boot menu.
Memory
zswap, sysctl, and closing the hungry app instead of freezing.
Boot
GRUB with Windows, zen + LTS kernels, a lean initramfs.
Hybrid graphics
The NVIDIA GPU sleeps until you ask for it.
Shared drive
One NTFS drive for both systems.
Docker on the shared drive
Images and volumes in a Btrfs image on NTFS.
Developer tools
One shared copy of every dependency.
Maintenance
News, caches, rollbacks.
Rules followed throughout
- Never touch a partition that belongs to the other system. Never format, resize or relabel.
- Take a snapshot before every bigger change.
- Back up every system file before editing it; check (
findmnt --verify,grub-mkconfig) before rebooting. - Packages only from the official repos and the AUR, and read the PKGBUILD first. No
curl | bash. - Prefer the ArchWiki over blog posts.