ESP=/dev/nvme0n1p1 ROOT=/dev/nvme0n1p2 SWAPFILESIZE=2G mkfs.btrfs -L ROOT $ROOT mount $ROOT /mnt btrfs sub create /mnt/@ btrfs sub create /mnt/@swap btrfs sub create /mnt/@home btrfs sub create /mnt/@pkg btrfs sub create /mnt/@snapshots btrfs sub create /mnt/@vm umount /mnt # For configure mount options, see https://btrfs.wiki.kernel.org/index.php/FAQ#Can_I_mount_subvolumes_with_different_mount_options.3F mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@ $ROOT /mnt mkdir -p /mnt/{boot,home,var/cache/pacman/pkg,.snapshots,btrfs,/var/lib/libvirt} mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@home $ROOT /mnt/home mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@pkg $ROOT /mnt/var/cache/pacman/pkg mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@snapshots $ROOT /mnt/.snapshots mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@vm $ROOT /mnt/var/lib/libvirt mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvolid=5 $ROOT /mnt/btrfs mount $ESP /mnt/boot # Create swapfile btrfs filesystem mkswapfile --size $SWAPFILESIZE --uuid clear /mnt/btrfs/@swap/swapfile swapon /mnt/btrfs/@swap/swapfile pacstrap -K /mnt base linux linux-firmware intel-ucode sof-firmware networkmanager man-db man-pages neovim grub efibootmgr zsh sudo