From d0c9a46a2a0be981258bad394cf7c787043850dc Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 22 Sep 2023 14:41:48 +0900 Subject: [PATCH] btrfs stuff --- nixos/hosts/nixos-vm-02/disks.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/nixos-vm-02/disks.nix b/nixos/hosts/nixos-vm-02/disks.nix index 25cad4d5..76718581 100644 --- a/nixos/hosts/nixos-vm-02/disks.nix +++ b/nixos/hosts/nixos-vm-02/disks.nix @@ -1,7 +1,9 @@ { boot.loader.grub.device = "/dev/sda"; boot.initrd.luks.devices."sda2".device = "/dev/sda2"; - + services.btrfs.autoScrub.enable = true; + services.btrfs.autoScrub.interval = "weekly"; + disko.devices.disk.sda = { device = "/dev/sda"; content = {