From 50ffbc5b5736c7251093d2eee328c93c1f2101e7 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 25 Aug 2023 21:15:33 +0100 Subject: [PATCH] Setup zfs auto snapshot for nas --- krops/nas/configuration.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/krops/nas/configuration.nix b/krops/nas/configuration.nix index 0249bd3..9b46758 100644 --- a/krops/nas/configuration.nix +++ b/krops/nas/configuration.nix @@ -246,6 +246,43 @@ }; }; }; + sanoid = { + enable = true; + datasets = { + "Primary/becki" = { + autoprune = true; + autosnap = true; + daily = 4; + monthly = 3; + yearly = 1; + }; + "Primary/gabriel" = { + autoprune = true; + autosnap = true; + daily = 4; + monthly = 3; + yearly = 1; + }; + "Primary/shared" = { + autoprune = true; + autosnap = true; + daily = 2; + monthly = 2; + }; + "Primary/k3scluster" = { + autoprune = true; + autosnap = true; + daily = 2; + monthly = 2; + }; + "Primary/gitea" = { + autoprune = true; + autosnap = true; + daily = 2; + monthly = 2; + }; + }; + }; };