nix-config/partition.sh

18 lines
451 B
Bash
Raw Normal View History

2022-05-05 23:19:45 +02:00
parted /dev/mmcblk0 -- mklabel gpt
parted /dev/mmcblk0 -- mkpart ESP fat32 1MiB 256MiB
parted /dev/mmcblk0 -- set 1 esp on
parted /dev/mmcblk0 -- mkpart primary 256MiB
2022-05-05 21:09:47 +02:00
2022-05-05 23:19:45 +02:00
mkfs.fat -F 32 -n boot /dev/mmcblk0p1
mkfs.ext4 -L nixos /dev/mmcblk0p2
2022-05-05 21:09:47 +02:00
mount /dev/disk/by-label/root /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
cd /etc/nixos/
2022-05-05 23:19:45 +02:00
rm /etc/nixos/*
2022-05-05 21:09:47 +02:00
git init
git remote add origin https://github.com/dump-dvb/nix-config.git
git pull