forked from Fachschaft/nixConfig
Move Jitsi to a module
This commit is contained in:
parent
4318950142
commit
bb93d3aed5
3 changed files with 61 additions and 25 deletions
|
@ -3,13 +3,17 @@ flake-inputs:
|
|||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
(import ./jitsi.nix flake-inputs)
|
||||
../../modules/jitsi.nix
|
||||
../../roles
|
||||
./network.nix
|
||||
];
|
||||
|
||||
# System configuration here
|
||||
services.mathebau-jitsi = {
|
||||
enable = true;
|
||||
hostName = "meet.mathebau.de";
|
||||
};
|
||||
|
||||
# System configuration here
|
||||
networking.hostName = "ghatanothoa";
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
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 ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue