move jitsi-meet to SP module

pull/55/head
Alexander 2023-12-04 15:43:06 +04:00
parent 3f573e3dc3
commit 054d6d9182
7 changed files with 34 additions and 22 deletions

View File

@ -9,7 +9,6 @@
./webserver/nginx.nix
./webserver/memcached.nix
# ./resources/limits.nix
./videomeet/jitsi.nix
./git/gitea.nix
];

View File

@ -0,0 +1,4 @@
[
[ "selfprivacy", "domain" ],
[ "selfprivacy", "modules", "jitsi-meet" ]
]

View File

@ -0,0 +1,9 @@
{
description = "PoC SP module for Jitsi Meet video conferences server";
outputs = { self }: {
nixosModules.default = import ./module.nix;
configPathsNeeded =
builtins.fromJSON (builtins.readFile ./config-paths-needed.json);
};
}

View File

@ -0,0 +1,21 @@
{ config, lib, ... }:
{
options.selfprivacy.modules.jitsi-meet = {
enable = lib.mkOption {
default = false;
type = with lib.types; nullOr bool;
};
};
config = lib.mkIf config.selfprivacy.modules.jitsi-meet.enable {
services.jitsi-meet = {
enable = true;
hostName = "meet.${config.selfprivacy.domain}";
nginx.enable = true;
interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
};
};
};
}

View File

@ -22,9 +22,6 @@ jsonData: { lib, ... }:
enable = lib.attrsets.attrByPath [ "gitea" "enable" ] false jsonData;
location = lib.attrsets.attrByPath [ "gitea" "location" ] "sda1" jsonData;
};
jitsi = {
enable = lib.attrsets.attrByPath [ "jitsi" "enable" ] false jsonData;
};
ssh = {
enable = lib.attrsets.attrByPath [ "ssh" "enable" ] true jsonData;
rootKeys = lib.attrsets.attrByPath [ "ssh" "rootKeys" ] [ "" ] jsonData;

View File

@ -125,12 +125,6 @@ with lib;
type = types.nullOr types.str;
};
};
jitsi = {
enable = mkOption {
default = false;
type = types.nullOr types.bool;
};
};
#########
# SSH #
#########

View File

@ -1,12 +0,0 @@
{ config, ... }:
{
services.jitsi-meet = {
enable = config.selfprivacy.jitsi.enable;
hostName = "meet.${config.selfprivacy.domain}";
nginx.enable = true;
interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
};
};
}