nixos-configs/scripts/1-archinstaller.sh

18 lines
465 B
Bash
Raw Normal View History

2023-02-12 12:49:54 -05:00
#!/bin/sh
PART="$1"
KEY="$2"
loadkeys ca
cryptsetup -y -v luksFormat --type luks1 /dev/nvme0n1p$PART
cryptsetup open /dev/nvme0n1p$PART root
mkfs.btrfs /dev/mapper/root
mount /dev/mapper/root /mnt
mount --mkdir /dev/nvme0n1p1 /mnt/boot
pacman -Syu
pacstrap -K /mnt base linux-firmware linux amd-ucode patch dkms kmod btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages
2023-02-12 12:49:54 -05:00
genfstab -U /mnt >> /mnt/etc/fstab
2023-02-14 11:15:49 -05:00
arch-chroot /mnt