helm/hosts/kuro/README.org
Henrik Lissner a75c64d04a
Rewrite to use flakes
This puts a hard dependency on 20.09, but that's to be expected.
2020-10-11 01:31:33 -04:00

2.4 KiB

Kuro

Overview

Specs

CPU AMD Ryzen 9 3900X 12-core, 24-thread
MOBO GIGABYTE B550 AORUS Elite
COOL Cooler Master Hyper 212 Evo
GPU EVGA GeForce 680 GTX SC
RAM G.SKILL Ripjaws V Series 64GB (2x 32GB)
HDD Samsung 970 EVO Plus 500GB NVMe M2
HDD ST31000340NS 1TB (2x)
KBD ErgoDox-EZ
MOUSE Anker Wireless Vertical Mouse

Installation

Set up root file system

# EVO Plus 500gb
parted /dev/nvme0n1 -- mklabel gpt
parted /dev/nvme0n1 -- mkpart ESP fat32 1MiB 512MiB
parted /dev/nvme0n1 -- mkpart primary 512MiB 200GiB
parted /dev/nvme0n1 -- mkpart primary 200GiB 100%
parted /dev/nvme0n1 -- set 1 boot on
mkfs.fat -F32 -n BOOT /dev/nvme0n1p1
mkfs.ext4 -L nixos /dev/nvme0n1p2
mkfs.ext4 -L home /dev/nvme0n1p3

Set up VM SSDs

# 2x SSDs for VMs
parted /dev/sdc -- mklabel gpt
parted /dev/sde -- mklabel gpt

Set up backup file system

# 2x 1TB mirrored backup
zpool create -R /mnt \
    -O mountpoint=none \
    -O xattr=sa \
    -O atime=off \
    -O compression=lz4 \
    -O recordsize=1M \
    -o ashift=9 \
    usr mirror /dev/sda /dev/sdb

# aux
zfs create -o mountpoint=legacy usr/media
zfs create -o mountpoint=legacy usr/backup
zfs create -o mountpoint=legacy -o recordsize=128K usr/share
zfs create -o mountpoint=legacy -o recordsize=128K usr/local

Mount drives

mount /dev/nvme0n1p2 /mnt

mkdir -p /mnt/{home,boot,usr/{backup,media,share}}
mount /dev/nvme0n1p1 /mnt/boot
mount /dev/nvme0n1p3 /mnt/home
mount -t zfs {usr,/mnt/usr}/backup
mount -t zfs {usr,/mnt/usr}/media
mount -t zfs {usr,/mnt/usr}/share
mount -t zfs {usr,/mnt/usr}/local