···2# Stolen from @Jet https://github.com/Michael-C-Buckley/nixos/blob/master/modules/hosts/o1/tools/format.sh
34# find a way to put keys for secrets into respective directories yourself
0056#!/usr/bin/env bash
7set -euo pipefail
···3233echo "Formatting drives..."
34# Put boot on the NVMe then fill the rest with ZFS
35-sgdisk -n1:1M:+512M -t1:EF00 -c1:"EFI System" /dev/sda
36sgdisk -n2:0:+4G -t2:8200 -c2:"Linux Swap" /dev/sda
37sgdisk -n3:0:0 -t3:BF01 -c3:"ZROOT" /dev/sda
38···57 zfs create -o mountpoint=legacy zroot/$zvol
58 mount -t zfs zroot/$zvol /mnt/$zvol
59done
000006061nixos-install --no-root-password --flake "github:Ladas552/Flake-Ocean#NixWool"
62
···2# Stolen from @Jet https://github.com/Michael-C-Buckley/nixos/blob/master/modules/hosts/o1/tools/format.sh
34# find a way to put keys for secrets into respective directories yourself
5+# My way is to `sudo passwd` a new root password and `ssh root@ip` into the vps
6+# Then just `scp ./keys.txt root@ip:/root`
78#!/usr/bin/env bash
9set -euo pipefail
···3435echo "Formatting drives..."
36# Put boot on the NVMe then fill the rest with ZFS
37+sgdisk -n1:1M:+512M -t1:EF00 -c1:"NIXBOOT" /dev/sda
38sgdisk -n2:0:+4G -t2:8200 -c2:"Linux Swap" /dev/sda
39sgdisk -n3:0:0 -t3:BF01 -c3:"ZROOT" /dev/sda
40···59 zfs create -o mountpoint=legacy zroot/$zvol
60 mount -t zfs zroot/$zvol /mnt/$zvol
61done
62+63+mkdir -p /mnt/persist/home/ladas552/.ssh
64+mkdir -p /mnt/persist/home/ladas552/.config/sops/age
65+cp ./NixToks /mnt/persist/home/ladas552/.ssh/
66+cp ./keys.txt /mnt/persist/home/ladas552/.config/sops/age/
6768nixos-install --no-root-password --flake "github:Ladas552/Flake-Ocean#NixWool"
69