hardware rewrite

This commit is contained in:
bogale 2026-10-07 14:09:53 +09:00
commit 4dd5416eb6
9 changed files with 40 additions and 52 deletions

View file

@ -1,4 +1,3 @@
set -euo pipefail
gdisk $DISK
mkfs.fat -F 32 $ESPPART
cryptsetup luksFormat $ROOTPART
@ -9,7 +8,6 @@ mount $ESPPART --mkdir -o umask=077 /mnt/boot
mkdir /mnt/var
mkswap -F -s $SWAPSIZE /mnt/var/swapfile
swapon /mnt/var/swapfile
mkdir -p /mnt/etc/nixos
nixos-generate-config --root /mnt --kernel latest --flake
#copy backup
nixos-install --no-root-passwd --no-channel-copy --flake "/mnt/etc/nixos#nixos"