From a30474f2d6448adbbca1ab19cb2582a72009a404 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Sun, 14 Jun 2026 22:52:26 -0300 Subject: [PATCH] fix(hosts,spacestation): use partuuid in zfs devnodes and disk id in disko --- hosts/spacestation/disko.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hosts/spacestation/disko.nix b/hosts/spacestation/disko.nix index 0c33f27..4bb4d6a 100644 --- a/hosts/spacestation/disko.nix +++ b/hosts/spacestation/disko.nix @@ -4,7 +4,7 @@ boot.zfs.requestEncryptionCredentials = true; boot.zfs.forceImportRoot = false; - boot.zfs.devNodes = "/dev/disk/by-id/"; + boot.zfs.devNodes = "/dev/disk/by-partuuid"; services.zfs.autoScrub.enable = true; services.zfs.autoScrub.interval = "monthly"; @@ -45,8 +45,14 @@ }; }; in { - root = mkDisk "/dev/sda" "/boot"; - mirror = mkDisk "/dev/sdb" "/boot-fallback"; + root = + mkDisk + "/dev/disk/by-id/ata-WDC_WD5000LPCX-21VHAT0_WD-WX2A18L0ZJJ" + "/boot"; + mirror = + mkDisk + "/dev/disk/by-id/ata-WDC_WD5000LPCX-00VHAT0_WD-WX91AA8JEYUV" + "/boot-fallback"; }; zpool = { zroot = {