From 807edf7acd83ccc2f39954174c7a0b4a82d9ed2e Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 9 Feb 2019 14:01:41 +0100 Subject: machines/dnyarri: Enable btrfs auto-scrub I had this in my local configuration.nix since a while and while it might be annoying when this runs every month, I think it's better to do it regularily rather than having a dying disk go unnoticed. Signed-off-by: aszlig --- machines/aszlig/dnyarri.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'machines/aszlig') diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix index bb75a91b..e060aac6 100644 --- a/machines/aszlig/dnyarri.nix +++ b/machines/aszlig/dnyarri.nix @@ -80,6 +80,8 @@ in { ${pkgs.hdparm}/sbin/hdparm -B 255 /dev/disk/by-id/ata-ST31500541AS_6XW0M217 ''; + services.btrfs.autoScrub.enable = true; + swapDevices = map ({ name, ... }: { device = "/dev/mapper/${name}"; }) cryptDevices.swap; -- cgit 1.4.1