helm/hosts/kuro
2021-09-04 00:10:19 +02:00
..
default.nix tweak(kuro): enable node, rust, python modules 2021-09-04 00:10:19 +02:00
hardware-configuration.nix Move net.ipv4.icmp_echo_ignore_broadcasts to kuro/shiro 2021-02-21 14:47:40 -05:00
README.org Update host READMEs 2021-04-13 20:30:00 -04:00

Kuro

Overview

My main driver for work on Linux.

Have a separate Windows rig for gaming/adobe (Midori).

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/sda -- mklabel gpt
parted -a optimal /dev/sda -- mkpart primary 0% 100%
parted /dev/sdb -- mklabel gpt
parted -a optimal /dev/sdb -- mkpart primary 0% 100%
mkfs.ext4 -L vm1 /dev/sda1
mkfs.ext4 -L vm2 /dev/sdb1

Set up backup file system

parted /dev/sdc -- mklabel gpt
parted /dev/sdc -- mkpart primary ext4 0% 100%
mkfs.ext4 -L store /dev/sdc

Set up backup file system

Backup was moved to an NAS, so this is no longer needed. It's kept as a reference.

# 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/sdc /dev/sdd

# 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/store}
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
mount /dev/sda1 /usr/vm/windows
mount /dev/sdb1 /usr/vm/macos
mount /dev/sdc2 /usr/store