summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/gum/hetznercloud/doit
blob: 45798587a263d8a760e0e271f37d04d2c2f29b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
ROOT_DEVICE=/dev/sda2
NIXOS_BOOT=/dev/sda1

zpool create -o ashift=12 -o altroot=/mnt rpool $ROOT_DEVICE
zfs create -o mountpoint=legacy rpool/root
zfs create -o mountpoint=legacy rpool/home
zfs create -o mountpoint=legacy rpool/nix
mount -t zfs rpool/root /mnt
mkdir /mnt/{home,nix,boot}
mount -t zfs rpool/home /mnt/home
mount -t zfs rpool/nix /mnt/nix
mount $NIXOS_BOOT /mnt/boot/