From 1945294218343eeab9138a8a09206faae462790b Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Tue, 24 Oct 2023 22:03:15 +0100 Subject: [PATCH] jorah: auto scrub btrfs filesystems --- hosts/jorah.cx.ts.hillion.co.uk/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/jorah.cx.ts.hillion.co.uk/default.nix b/hosts/jorah.cx.ts.hillion.co.uk/default.nix index c3d0f6d..3d75641 100644 --- a/hosts/jorah.cx.ts.hillion.co.uk/default.nix +++ b/hosts/jorah.cx.ts.hillion.co.uk/default.nix @@ -24,6 +24,14 @@ services.version_tracker.enable = true; }; + ## Filesystems + services.btrfs.autoScrub = { + enable = true; + interval = "Tue, 02:00"; + # By default both /data and /nix would be scrubbed. They are the same filesystem so this is wasteful. + fileSystems = [ "/data" ]; + }; + ## Networking systemd.network = { enable = true; -- 2.47.0