From 420796a5476add3688b15d9074a48203a54d4bfd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 3 Aug 2020 15:19:56 +0800 Subject: [PATCH] nixbld: install jitsi --- nixbld-etc-nixos/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 63dc93e..ad4acbe 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -10,6 +10,10 @@ let netifWifi = "wlp1s0"; netifSit = "henet0"; hydraWwwOutputs = "/var/www/hydra-outputs"; + nur-no-pkgs = import (builtins.fetchTarball { + url = "https://github.com/nix-community/NUR/archive/bb3e415984e818099cd72776dc18dbbbb61cd364.tar.gz"; + sha256 = "10mlxc4hj7nn3i766mjgjn9f1523w2v8msq895p7qp2j2wbx7b3g"; + }) {}; in { imports = @@ -20,6 +24,7 @@ in url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.3.0/nixos-mailserver-v2.3.0.tar.gz"; sha256 = "0lpz08qviccvpfws2nm83n7m2r8add2wvfg9bljx9yxx8107r919"; }) + nur-no-pkgs.repos.mmilata.modules.jitsi-meet ]; # Use the systemd-boot EFI boot loader. @@ -422,6 +427,7 @@ in "hooks.m-labs.hk" = null; "forum.m-labs.hk" = null; "perso.m-labs.hk" = null; + "call.m-labs.hk" = null; "nmigen.org" = null; "www.nmigen.org" = null; @@ -578,6 +584,10 @@ in include /var/www/flarum/.nginx.conf; ''; }; + "call.m-labs.hk" = { + useACMEHost = "nixbld.m-labs.hk"; + forceSSL = true; + }; "perso.m-labs.hk" = { addSSL = true; useACMEHost = "nixbld.m-labs.hk"; @@ -638,6 +648,11 @@ in }; }; + services.jitsi-meet = { + enable = true; + hostName = "call.m-labs.hk"; + }; + mailserver = { enable = true; localDnsResolver = false; # conflicts with dnsmasq