My NixOS config Part 3: Flake-Parts Crusaders nix.ladas552.me
hjem nix nixos impermanence flake-parts nvfetcher niri noctalia

finalize the installation hopefully

Ladas552 17fc4a61 55817bc8

+8 -1
+8 -1
modules/hosts/NixWool/install.sh
··· 2 2 # Stolen from @Jet https://github.com/Michael-C-Buckley/nixos/blob/master/modules/hosts/o1/tools/format.sh 3 3 4 4 # 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` 5 7 6 8 #!/usr/bin/env bash 7 9 set -euo pipefail ··· 32 34 33 35 echo "Formatting drives..." 34 36 # Put boot on the NVMe then fill the rest with ZFS 35 - sgdisk -n1:1M:+512M -t1:EF00 -c1:"EFI System" /dev/sda 37 + sgdisk -n1:1M:+512M -t1:EF00 -c1:"NIXBOOT" /dev/sda 36 38 sgdisk -n2:0:+4G -t2:8200 -c2:"Linux Swap" /dev/sda 37 39 sgdisk -n3:0:0 -t3:BF01 -c3:"ZROOT" /dev/sda 38 40 ··· 57 59 zfs create -o mountpoint=legacy zroot/$zvol 58 60 mount -t zfs zroot/$zvol /mnt/$zvol 59 61 done 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/ 60 67 61 68 nixos-install --no-root-password --flake "github:Ladas552/Flake-Ocean#NixWool" 62 69