about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ops/machines/whitby/default.nix7
-rw-r--r--ops/modules/git-serving.nix1
-rw-r--r--ops/modules/monorepo-gerrit.nix5
-rw-r--r--ops/modules/www/deploys.tvl.fyi.nix2
4 files changed, 8 insertions, 7 deletions
diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix
index d59900776c34..7cc529c7f834 100644
--- a/ops/machines/whitby/default.nix
+++ b/ops/machines/whitby/default.nix
@@ -331,16 +331,9 @@ in {
       enable = true;
       paths = [
         "/var/backup/postgresql"
-        "/var/html/deploys.tvl.fyi"
-        "/var/lib/gerrit"
         "/var/lib/grafana"
-        "/var/lib/josh"
         "/var/lib/znc"
       ];
-
-      exclude = [
-        "/var/lib/gerrit/tmp"
-      ];
     };
   };
 
diff --git a/ops/modules/git-serving.nix b/ops/modules/git-serving.nix
index 7601ba1d6184..309560614308 100644
--- a/ops/modules/git-serving.nix
+++ b/ops/modules/git-serving.nix
@@ -50,5 +50,6 @@ in {
       };
     };
 
+    services.depot.restic.paths = [ "/var/lib/josh" ];
   };
 }
diff --git a/ops/modules/monorepo-gerrit.nix b/ops/modules/monorepo-gerrit.nix
index d4b37d860b53..69850fa15aaa 100644
--- a/ops/modules/monorepo-gerrit.nix
+++ b/ops/modules/monorepo-gerrit.nix
@@ -135,4 +135,9 @@ in {
       Group = "git";
     };
   };
+
+  services.depot.restic = {
+    paths = [ "/var/lib/gerrit" ];
+    exclude = [ "/var/lib/gerrit/tmp" ];
+  };
 }
diff --git a/ops/modules/www/deploys.tvl.fyi.nix b/ops/modules/www/deploys.tvl.fyi.nix
index 8ae06f2fff8e..ffbe225b58a3 100644
--- a/ops/modules/www/deploys.tvl.fyi.nix
+++ b/ops/modules/www/deploys.tvl.fyi.nix
@@ -16,5 +16,7 @@
       forceSSL = true;
       root = "/var/html/deploys.tvl.fyi";
     };
+
+    services.depot.restic.paths = [ "/var/html/deploys.tvl.fyi" ];
   };
 }