From 50f2a36c1bf5af938e9c64aff034190d0526f010 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Wed, 16 Feb 2022 16:58:42 +0000 Subject: [PATCH] simplify filesystems on setup guide --- LAPPY_SETUP_GUIDE.md | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/LAPPY_SETUP_GUIDE.md b/LAPPY_SETUP_GUIDE.md index 308a4f2..a4875d0 100644 --- a/LAPPY_SETUP_GUIDE.md +++ b/LAPPY_SETUP_GUIDE.md @@ -1,25 +1,12 @@ # Lappy Setup Guide ## Filesystems ``` -export DEVICE_ROOT=/dev/nvme0n1 -export DEVICE_BOOT_PART=${DEVICE_ROOT}p1 -export DEVICE_ENCRYPTED_ROOT_PART=${DEVICE_ROOT}p2 -export DEVICE_UNENCRYPTED_ROOT_NAME=cryptroot -export DEVICE_UNENCRYPTED_ROOT=/dev/mapper/${DEVICE_UNENCRYPTED_ROOT_NAME} -export ENCRYPTION_KEY_PATH=mount/encryption-keys/lappy.key +mkdir /usb +cryptsetup luksOpen /dev/disk/by-partname/usb usb_unencrypted +mount /dev/mapper/usb_unencrypted /usb -parted /dev/${DEVICE_ROOT} -- mklabel gpt -parted /dev/${DEVICE_ROOT} -- mkpart ESP fat32 1MiB 512MiB -parted /dev/${DEVICE_ROOT} -- mkpart primary 620MiB -1MiB -parted /dev/${DEVICE_ROOT} -- set 1 esp on -parted /dev/${DEVICE_ROOT} -- name 1 nixboot -parted /dev/${DEVICE_ROOT} -- name 2 nixos_encrypted -mkfs.fat -n nixboot ${DEVICE_BOOT_PART} - -cryptsetup luksFormat ${DEVICE_ENCRYPTED_ROOT_PART} -cryptsetup luksAddKey ${DEVICE_ENCRYPTED_ROOT_PART} ${ENCRYPTION_KEY_PATH} -cryptsetup luksOpen ${DEVICE_ENCRYPTED_ROOT_PART} ${DEVICE_UNENCRYPTED_ROOT_NAME} -mkfs.ext4 -L nixos ${DEVICE_UNENCRYPTED_ROOT} +nix develop +mk-lappy-ssd /dev/nvme0n1 /usb/encryption-keys/lappy.key ``` ## SSH Key unbase64 it from vault