summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xhost/Rory-nginx/services/nginx/rory.gay/jitsi.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix b/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix
index a9b3354..ee814f4 100755
--- a/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix
+++ b/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix
@@ -1,5 +1,16 @@
 { config, pkgs, lib, ... }:
 
+let
+  overrideJs = filePath: varName: newContent: appendExtra:
+    let
+      oldContent = builtins.readFile filePath;
+      regex = "var ${varName} = {[^}]*};";
+      newJs = builtins.replaceStrings [ regex ] [ "var ${varName} = ${newContent};" ] oldContent;
+    in
+      builtins.writeFile filePath newJs;
+
+  cfg = config.services.jitsi-meet;
+in
 {
   enableACME = true;
   addSSL = true;