From 9fe90a1ede6cacebbca62eea9852169acbddea63 Mon Sep 17 00:00:00 2001 From: NullBite Date: Tue, 17 Dec 2024 00:59:13 +0000 Subject: [PATCH] rpi4: set btrfs commit interval to 5 minutes i meant to do this months ago. my last sd card died and i want to avoid that happening again. --- hosts/rpi4/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/rpi4/configuration.nix b/hosts/rpi4/configuration.nix index dd02915..2755ce8 100644 --- a/hosts/rpi4/configuration.nix +++ b/hosts/rpi4/configuration.nix @@ -22,7 +22,7 @@ "/opt/hassio" "/opt/hassio/.snapshots" ]; - fn = (x: { options = [ "compress=zstd" ];}); + fn = (x: { options = [ "compress=zstd commit=300" ];}); in lib.genAttrs mounts fn; # Use the extlinux boot loader. (NixOS wants to enable GRUB by default)