mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-28 09:42:26 +02:00
18 lines
451 B
Bash
18 lines
451 B
Bash
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
|
|
|
|
mkfs.fat -F 32 -n boot /dev/mmcblk0p1
|
|
mkfs.ext4 -L nixos /dev/mmcblk0p2
|
|
|
|
mount /dev/disk/by-label/root /mnt
|
|
mkdir -p /mnt/boot
|
|
mount /dev/disk/by-label/boot /mnt/boot
|
|
|
|
cd /etc/nixos/
|
|
rm /etc/nixos/*
|
|
git init
|
|
git remote add origin https://github.com/dump-dvb/nix-config.git
|
|
git pull
|