From af5abfc712ce25bd043271fb903c58b639c4e4c8 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 23 Jun 2024 15:14:30 +0200 Subject: [PATCH 1/2] nachtigall: enable ZFS auto scrub once per month --- hosts/nachtigall/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/nachtigall/configuration.nix b/hosts/nachtigall/configuration.nix index f4d9e1dc..324755e9 100644 --- a/hosts/nachtigall/configuration.nix +++ b/hosts/nachtigall/configuration.nix @@ -35,6 +35,11 @@ # https://nixos.wiki/wiki/ZFS#declarative_mounting_of_ZFS_datasets systemd.services.zfs-mount.enable = false; + services.zfs.autoScrub = { + enable = true; + pools = [ "root_pool" ]; + }; + # Declarative SSH private key age.secrets."nachtigall-root-ssh-key" = { file = "${flake.self}/secrets/nachtigall-root-ssh-key.age"; From 153ef69daf6655b1e41ad0b17abf2bc4bc789c2f Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 23 Jun 2024 15:16:04 +0200 Subject: [PATCH 2/2] metronom: enable ZFS auto scrub once per month --- hosts/metronom/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/metronom/configuration.nix b/hosts/metronom/configuration.nix index a423d4e3..a43c8360 100644 --- a/hosts/metronom/configuration.nix +++ b/hosts/metronom/configuration.nix @@ -18,6 +18,11 @@ # https://nixos.wiki/wiki/ZFS#declarative_mounting_of_ZFS_datasets systemd.services.zfs-mount.enable = false; + services.zfs.autoScrub = { + enable = true; + pools = [ "root_pool" ]; + }; + # Declarative SSH private key #age.secrets."metronom-root-ssh-key" = { # file = "${flake.self}/secrets/metronom-root-ssh-key.age";