From f6f269eeedb1d09a6eaadeeb7178d4f7744f3bab Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 21 May 2023 23:08:15 +0100 Subject: [PATCH] Enable ZFS scrubbing and auto-snapshots --- hosts/library/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/library/default.nix b/hosts/library/default.nix index 03cd9e0..d3f1f93 100644 --- a/hosts/library/default.nix +++ b/hosts/library/default.nix @@ -25,6 +25,18 @@ with lib.my; system.stateVersion = "22.11"; + services.zfs = { + autoScrub = { + enable = true; + pools = [ "library" ]; + }; + autoSnapshot = { + enable = true; + flags = "-k -p --utc"; + daily = 7; + }; + }; + systemd.services.vps1-tunnel = { enable = true; description = "vps1.mesh.vimium.net SSH tunnel";