about summary refs log tree commit diff
path: root/modules/rss-bridge.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/rss-bridge.nix (renamed from modules/nixos/rss-bridge.nix)10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/nixos/rss-bridge.nix b/modules/rss-bridge.nix
index de1d6b6..c890872 100644
--- a/modules/nixos/rss-bridge.nix
+++ b/modules/rss-bridge.nix
@@ -20,7 +20,7 @@ in
   };
 
   config = mkIf cfg.enable {
-    ark.directories = [ "/var/lib/rss-bridge" ];
+    ark.directories = [ config.services.rss-bridge.dataDir ];
 
     nixfiles.modules.nginx = {
       enable = true;
@@ -30,7 +30,13 @@ in
     services.rss-bridge = {
       enable = true;
       virtualHost = cfg.domain;
-      whitelist = [ "*" ];
+      config = {
+        system.enabled_bridges = [ "*" ];
+        FileCache = {
+          path = "${config.services.rss-bridge.dataDir}/cache";
+          enable_purge = true;
+        };
+      };
     };
   };
 }

Consider giving Nix/NixOS a try! <3