hardware rewrite
This commit is contained in:
parent
46c2e595fe
commit
4dd5416eb6
9 changed files with 40 additions and 52 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue