mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-08 00:51:23 +00:00
move jitsi-meet to SP module
This commit is contained in:
parent
3f573e3dc3
commit
054d6d9182
|
@ -9,7 +9,6 @@
|
|||
./webserver/nginx.nix
|
||||
./webserver/memcached.nix
|
||||
# ./resources/limits.nix
|
||||
./videomeet/jitsi.nix
|
||||
./git/gitea.nix
|
||||
];
|
||||
|
||||
|
|
4
sp-modules/jitsi-meet/config-paths-needed.json
Normal file
4
sp-modules/jitsi-meet/config-paths-needed.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
[ "selfprivacy", "domain" ],
|
||||
[ "selfprivacy", "modules", "jitsi-meet" ]
|
||||
]
|
9
sp-modules/jitsi-meet/flake.nix
Normal file
9
sp-modules/jitsi-meet/flake.nix
Normal 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);
|
||||
};
|
||||
}
|
21
sp-modules/jitsi-meet/module.nix
Normal file
21
sp-modules/jitsi-meet/module.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -125,12 +125,6 @@ with lib;
|
|||
type = types.nullOr types.str;
|
||||
};
|
||||
};
|
||||
jitsi = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
type = types.nullOr types.bool;
|
||||
};
|
||||
};
|
||||
#########
|
||||
# SSH #
|
||||
#########
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue