From 4318950142e0a61f79390c87830c70384f2efdb4 Mon Sep 17 00:00:00 2001 From: Gonne Kretschmer Date: Fri, 20 Oct 2023 11:04:40 +0200 Subject: [PATCH] Jitsi konfiguriert --- nixos/machines/ghatanothoa/configuration.nix | 1 + nixos/machines/ghatanothoa/jitsi.nix | 23 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 nixos/machines/ghatanothoa/jitsi.nix diff --git a/nixos/machines/ghatanothoa/configuration.nix b/nixos/machines/ghatanothoa/configuration.nix index 22aa65b..54f3211 100644 --- a/nixos/machines/ghatanothoa/configuration.nix +++ b/nixos/machines/ghatanothoa/configuration.nix @@ -3,6 +3,7 @@ flake-inputs: imports = [ ./hardware-configuration.nix + (import ./jitsi.nix flake-inputs) ../../roles ./network.nix ]; diff --git a/nixos/machines/ghatanothoa/jitsi.nix b/nixos/machines/ghatanothoa/jitsi.nix new file mode 100644 index 0000000..547e3c7 --- /dev/null +++ b/nixos/machines/ghatanothoa/jitsi.nix @@ -0,0 +1,23 @@ +flake-inputs: +{pkgs, config, lib, modulesPath, ...}: { + imports = [(modulesPath + "/services/web-apps/jitsi-meet.nix")]; + + services.jitsi-meet = { + enable = true; + hostName = "meet.mathebau.de"; + config = { + defaultLang = "de"; + }; + }; + services.jitsi-videobridge = { + openFirewall = true; + nat = { + publicAddress = "130.83.2.184"; + localAddress = "192.168.0.25"; + }; + }; + services.nginx.virtualHosts."meet.mathebau.de".enableACME = false; + services.nginx.virtualHosts."meet.mathebau.de".forceSSL = false; + networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedUDPPorts = [ 10000 ]; +}