about summary refs log tree commit diff
path: root/nixos/kanata/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/kanata/configuration.nix')
-rw-r--r--nixos/kanata/configuration.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/kanata/configuration.nix b/nixos/kanata/configuration.nix
index 05b7969..488de30 100644
--- a/nixos/kanata/configuration.nix
+++ b/nixos/kanata/configuration.nix
@@ -100,6 +100,7 @@ in
   sops.secrets.interlink-ovpn = { };
   sops.secrets.interlink-ovpn-creds = { };
   sops.secrets.proton-private-key = { };
+  sops.secrets.attic-credentials = { };
   # TODO: insecure?
   sops.secrets.invidious-hmac = { mode = "0444"; };
 
@@ -154,6 +155,7 @@ in
         "nitter.kusanari.network".to = "http://localhost:4002";
         "invidious.kusanari.network".to = "http://localhost:4003";
         "hydra.kusanari.network".to = "http://localhost:4004";
+        "cache.kusanari.network".to = "http://localhost:4005";
 
         # Nginx pre-configured routes
         "nextcloud.kusanari.network" = {
@@ -189,6 +191,7 @@ in
             "metrics"
             "invidious"
             "hydra"
+            "cache"
           ];
         };
       };
@@ -242,6 +245,19 @@ in
 
       baseURL = "https://hydra.kusanari.network";
     };
+
+    services.atticd = {
+      enable = true;
+
+      hosts = [ "cache.kusanari.network" ];
+      baseURL = "https://cache.kusanari.network/";
+
+      storagePath = "/smol/archive/attic";
+
+      watchStore = true;
+
+      secrets.attic-credentials = config.sops.secrets.attic-credentials.path;
+    };
   };
 
   containers.v-interlink = {