Skip to content

Instantly share code, notes, and snippets.

Avatar

Dustin mannkind

View GitHub Profile
@mannkind
mannkind / init.sh
Created May 28, 2020
NixOS Installation Init
View init.sh
# Always use the by-id aliases for devices, otherwise ZFS can choke on imports.
export DISK=/dev/disk/by-id/ata-CT500MX500SSD1_1902E1E1E7CD
echo "partitioning disk"
sgdisk --zap-all $DISK
sgdisk -a1 -n2:34:2047 -t2:EF02 $DISK
sgdisk -n3:1M:+512M -t3:EF00 $DISK
sgdisk -n1:0:0 -t1:BF01 $DISK
echo "sleeping..."
You can’t perform that action at this time.