summaryrefslogtreecommitdiffstats
path: root/1systems/gum/hetznercloud/doit
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-03-11 00:18:19 +0100
committermakefu <github@syntax-fehler.de>2022-03-11 00:18:19 +0100
commitdb13390dda88924b085fcba27486daf2b38db0dd (patch)
treeedfafa43cee5538862ddce0d62e00f6e733fa8bc /1systems/gum/hetznercloud/doit
parent04888b24d4ea28c0930618f2c31f773b93aaa62a (diff)
ma gum.r: arise
Diffstat (limited to '1systems/gum/hetznercloud/doit')
-rw-r--r--1systems/gum/hetznercloud/doit13
1 files changed, 13 insertions, 0 deletions
diff --git a/1systems/gum/hetznercloud/doit b/1systems/gum/hetznercloud/doit
new file mode 100644
index 000000000..45798587a
--- /dev/null
+++ b/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/
+
[cgit] Unable to lock slot /tmp/cgit/d9200000.lock: No such file or directory (2)