From e38a7ee2cec1ed268fa811a52eec12b7ead43c11 Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Thu, 20 Aug 2026 08:27:44 -0400 Subject: [PATCH] prattle: move root to the intel ssd on bcachefs --- machines/prattle/default.nix | 5 +++++ machines/prattle/disk-config.nix | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/machines/prattle/default.nix b/machines/prattle/default.nix index ac2b76b..50e412c 100644 --- a/machines/prattle/default.nix +++ b/machines/prattle/default.nix @@ -224,6 +224,11 @@ boot.supportedFilesystems.bcachefs = true; boot.initrd.supportedFilesystems.bcachefs = true; + services.bcachefs.autoScrub = { + enable = true; + interval = "weekly"; + }; + services.smartd = { enable = true; autodetect = true; diff --git a/machines/prattle/disk-config.nix b/machines/prattle/disk-config.nix index 55966cf..b10ae43 100644 --- a/machines/prattle/disk-config.nix +++ b/machines/prattle/disk-config.nix @@ -5,10 +5,9 @@ # 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/disk/by-id/ata-Hitachi_HTS543212L9SA02_090130FBEB00LGGJ35RF"; + device = "/dev/disk/by-id/ata-INTEL_SSDSC2KB240G8_BTYF913507GA240AGN"; content = { type = "gpt"; partitions = { @@ -25,8 +24,9 @@ size = "100%"; content = { type = "filesystem"; - format = "ext4"; + format = "bcachefs"; mountpoint = "/"; + extraArgs = [ "--compression=zstd" ]; }; }; }; -- 2.51.2