moved ap to module

This commit is contained in:
bogale 2026-11-10 12:02:34 +09:00
commit e793066e9b
11 changed files with 61 additions and 64 deletions

View file

@ -1,13 +0,0 @@
# tepmlate, not for running
gdisk $DISK
mkfs.fat -F 32 -n $HOST-esp $ESPPART
cryptsetup luksFormat $ROOTPART
cryptsetup open $ROOTPART root
mkfs.ext4 -L $HOST-root /dev/mapper/root
mount /dev/mapper/root /mnt
mount --mkdir $ESPPART /mnt/boot
mkdir -p /mnt/var/lib
# restore backup
nixos-install --no-root-passwd --no-channel-copy --flake "/mnt/etc/nixos#nixos-$HOST"
sbctl enroll-keys --yolo
systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+2+7 $ROOTPART