From a76df8f5d06783101e4b2dc6034f93b9425e6dd4 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Mon, 29 Jul 2024 11:36:46 +0100 Subject: [PATCH] Add btrfs auto-scrub Signed-off-by: Nikolaos Karaolidis --- hosts/common/system/configs/btrfs/default.nix | 7 +++++++ hosts/eirene/default.nix | 1 + 2 files changed, 8 insertions(+) create mode 100644 hosts/common/system/configs/btrfs/default.nix diff --git a/hosts/common/system/configs/btrfs/default.nix b/hosts/common/system/configs/btrfs/default.nix new file mode 100644 index 0000000..8372ccd --- /dev/null +++ b/hosts/common/system/configs/btrfs/default.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + services.btrfs.autoScrub = { + enable = true; + interval = "weekly"; + }; +} diff --git a/hosts/eirene/default.nix b/hosts/eirene/default.nix index abfbac8..994cab7 100644 --- a/hosts/eirene/default.nix +++ b/hosts/eirene/default.nix @@ -4,6 +4,7 @@ ../common/system/configs/boot ../common/system/configs/brightnessctl ../common/system/configs/btop + ../common/system/configs/btrfs ../common/system/configs/fastfetch ../common/system/configs/getty ../common/system/configs/git