summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/gum/hetznercloud/doit
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-03-11 13:10:26 +0100
committerlassulus <lassulus@lassul.us>2022-03-11 13:10:26 +0100
commitb1576fa5a9c9c8d0c1897a8dd67661adddd07e22 (patch)
tree07753540d05e378af7a8613286dee0757bea7c09 /makefu/1systems/gum/hetznercloud/doit
parent04f48503a4164f91192b147d6c16fc44dae41352 (diff)
parentf7b233c14ff5cddba214f19211d980bc21b5c5c8 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/1systems/gum/hetznercloud/doit')
-rw-r--r--makefu/1systems/gum/hetznercloud/doit13
1 files changed, 13 insertions, 0 deletions
diff --git a/makefu/1systems/gum/hetznercloud/doit b/makefu/1systems/gum/hetznercloud/doit
new file mode 100644
index 000000000..45798587a
--- /dev/null
+++ b/makefu/1systems/gum/hetznercloud/doit
@@ -0,0 +1,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/
+