Stage a ZFS RAID0 disko layout for the bare-metal gui host

Adds modules/disko/baremetal.nix: two disks, each its own top-level
zpool vdev with no mirror/raidz between them (disko's zpool `mode`
defaults to "" for a plain stripe), ESP + systemd-boot on disk1. Device
paths are placeholders in variables.nix (guiRootDisk1/guiRootDisk2)
until the real hardware profile arrives.

Verified structurally by building a throwaway nixosSystem with the
actual disko.nixosModules.disko and reading the generated
system.build.formatScript: it emits `zpool create rpool ... disk1
disk2` with no mirror/raidz keyword, confirming a genuine stripe.

Not yet wired into any flake target -- that happens once the hardware
config lands and a new bare-metal platform module is added, per the
agreed sequencing.
This commit is contained in:
2026-07-21 23:54:00 +00:00
parent 14621e7ad5
commit 104804dbf6
2 changed files with 93 additions and 0 deletions
+6
View File
@@ -52,6 +52,12 @@
wifiSsid = "";
wifiPassword = "";
# Bare-metal gui host's two disks for a ZFS RAID0 (striped) root pool
# (modules/disko/baremetal.nix). Use stable /dev/disk/by-id/... paths,
# not /dev/sdX -- fill in once the hardware profile is available.
guiRootDisk1 = "";
guiRootDisk2 = "";
# System
timeZone = "Australia/Brisbane";