Order of operations
The sequence that worked, from an empty partition to a finished desktop, with a checkpoint after each step.
Each chapter of this playbook is one step. Doing them in this order means every step has a snapshot to fall back on.
Partition and install
Make room for Linux (shrinking a Windows partition is safest from Windows' own Disk Management), leave the shared data partition alone, and install EndeavourOS onto Btrfs. Set up the subvolumes and the swapfile → Disk layout.
Checkpoint: findmnt -t btrfs lists every subvolume; swapon --show shows the swapfile.
Snapshots before anything else
snapper, snap-pac and grub-btrfs, then one named snapshot of the clean system → Snapshots.
Checkpoint: the GRUB menu has a snapshots entry.
Memory and boot
zswap, sysctl and systemd-oomd → Memory. Two kernels, Windows in the menu, a lean initramfs → Boot.
Checkpoint: cat /sys/module/zswap/parameters/enabled prints Y; Windows boots from GRUB.
Graphics
The NVIDIA driver with runtime power management, nothing global → Hybrid graphics.
Checkpoint: the GPU reads suspended at idle; prime-run glxinfo -B shows NVIDIA.
The shared drive and Docker
Mount the Windows data partition, then move Docker's data onto it → Shared drive, Docker on the shared drive.
Checkpoint: the drive shows in the file manager; findmnt /var/lib/docker shows it mounted from the image on the shared drive.
Developer tools
One shared copy of every dependency → Developer tools.
The desktop
Install the MvpDots. Take a snapshot first: sudo snapper -c root create --description "before desktop".
Then keep it healthy with the routine in Maintenance.
Introduction
How the laptop underneath the desktop is set up, so it can't easily break, stays cool, and shares a drive with Windows.
Disk layout
One Linux partition, formatted as Btrfs, split into subvolumes. A subvolume behaves like its own filesystem (it can be snapshotted on its own), but every subvolume shares the free space of the partition.