mermet: sanoid: add pleroma
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Tue, 29 Aug 2023 21:14:32 +0000 (23:14 +0200)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Tue, 29 Aug 2023 21:48:05 +0000 (23:48 +0200)
hosts/mermet/pleroma.nix

index 452699864de7be00f97a5f477f76317f72960f3c..c89eeb0d6e14ad0d6b0474d1d14eb2b999f2927d 100644 (file)
@@ -173,6 +173,12 @@ in
         user       ${srv}           ${owner}
       '';
     };
+    sanoid.datasets."rpool/var/lib/${srv}" = {
+      use_template = [ "snap" ];
+      daily = 31;
+      monthly = 3;
+      recursive = true;
+    };
   };
   systemd.services = {
     nginx = {