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" ]; }; }; };