From 97a1aac4e65d45bdf71e8f60fd89023f4a19634c Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Mon, 10 Aug 2026 22:51:03 -0400 Subject: [PATCH] feat: add proper ids for prattle --- machines/prattle/disk-config.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/machines/prattle/disk-config.nix b/machines/prattle/disk-config.nix index 715eb1e..55966cf 100644 --- a/machines/prattle/disk-config.nix +++ b/machines/prattle/disk-config.nix @@ -1,9 +1,14 @@ { disko.devices = { disk = { + # /dev/sdX is assigned by enumeration order, not by which disk is which, + # and it has already drifted once: the disk holding disk-main-* is sdc, + # not the sda this file used to name. Disko formats whatever `main` + # points at, so a stale name here is a wiped pool member. by-id only. + # Swap `main` to the new SSD's by-id when it goes in. main = { type = "disk"; - device = "/dev/sda"; + device = "/dev/disk/by-id/ata-Hitachi_HTS543212L9SA02_090130FBEB00LGGJ35RF"; content = { type = "gpt"; partitions = { @@ -29,7 +34,7 @@ }; storage1 = { type = "disk"; - device = "/dev/sdb"; + device = "/dev/disk/by-id/ata-HGST_HDN726060ALE614_K1HHZH5B"; content = { type = "gpt"; partitions = { @@ -45,7 +50,7 @@ }; storage2 = { type = "disk"; - device = "/dev/sdc"; + device = "/dev/disk/by-id/ata-HGST_HDN726060ALE614_K1HHZD8B"; content = { type = "gpt"; partitions = { -- 2.51.2