sudo mount -t tmpfs -o mode=755 none /mnt
sudo mkdir -p /mnt/{boot,home,root,etc,nix,var/log}
sudo mount /dev/mmcblk0p2 /mnt/boot
sudo mkdir -p /mnt/boot/firmware
sudo mount /dev/mmcblk0p1 /mnt/boot/firmware
sudo mount /dev/mmcblk0p3 -o compress=zstd,subvol=home /mnt/home
sudo mount /dev/mmcblk0p3 -o compress=zstd,noatime,subvol=root /mnt/root
sudo mount /dev/mmcblk0p3 -o compress=zstd,noatime,subvol=etc /mnt/etc
sudo mount /dev/mmcblk0p3 -o compress=zstd,noatime,subvol=nix /mnt/nix
sudo mount /dev/mmcblk0p3 -o compress=zstd,noatime,subvol=log /mnt/var/log

# wpa_passphrase "Joey's Jungle 5G" "kR8v&3Qd" > 5g.conf
# wpa_supplicant -i wlp6s0 -c 5g.conf -B
# dhcpcd

# keyctl link @u @s
# clevis decrypt < "/etc/clevis/nas_pool.jwe" | bcachefs unlock /dev/disk/by-label/nas_pool
