style: format tree
This commit is contained in:
@@ -1,33 +1,36 @@
|
||||
{
|
||||
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);
|
||||
meta = { lib, ... }: {
|
||||
spModuleSchemaVersion = 1;
|
||||
id = "jitsi-meet";
|
||||
name = "JitsiMeet";
|
||||
description = "Jitsi Meet is a free and open-source video conferencing solution.";
|
||||
svgIcon = builtins.readFile ./icon.svg;
|
||||
isMovable = false;
|
||||
isRequired = false;
|
||||
backupDescription = "Secrets that are used to encrypt the communication.";
|
||||
systemdServices = [
|
||||
"prosody.service"
|
||||
"jitsi-videobridge2.service"
|
||||
"jicofo.service"
|
||||
];
|
||||
folders = [
|
||||
"/var/lib/jitsi-meet"
|
||||
];
|
||||
license = [
|
||||
lib.licenses.asl20
|
||||
];
|
||||
homepage = "https://jitsi.org/meet";
|
||||
sourcePage = "https://github.com/jitsi/jitsi-meet";
|
||||
supportLevel = "normal";
|
||||
outputs =
|
||||
{ self }:
|
||||
{
|
||||
nixosModules.default = import ./module.nix;
|
||||
configPathsNeeded = builtins.fromJSON (builtins.readFile ./config-paths-needed.json);
|
||||
meta =
|
||||
{ lib, ... }:
|
||||
{
|
||||
spModuleSchemaVersion = 1;
|
||||
id = "jitsi-meet";
|
||||
name = "JitsiMeet";
|
||||
description = "Jitsi Meet is a free and open-source video conferencing solution.";
|
||||
svgIcon = builtins.readFile ./icon.svg;
|
||||
isMovable = false;
|
||||
isRequired = false;
|
||||
backupDescription = "Secrets that are used to encrypt the communication.";
|
||||
systemdServices = [
|
||||
"prosody.service"
|
||||
"jitsi-videobridge2.service"
|
||||
"jicofo.service"
|
||||
];
|
||||
folders = [
|
||||
"/var/lib/jitsi-meet"
|
||||
];
|
||||
license = [
|
||||
lib.licenses.asl20
|
||||
];
|
||||
homepage = "https://jitsi.org/meet";
|
||||
sourcePage = "https://github.com/jitsi/jitsi-meet";
|
||||
supportLevel = "normal";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -5,37 +5,43 @@ let
|
||||
in
|
||||
{
|
||||
options.selfprivacy.modules.jitsi-meet = {
|
||||
enable = (lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = "Enable JitsiMeet";
|
||||
}) // {
|
||||
meta = {
|
||||
type = "enable";
|
||||
enable =
|
||||
(lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = "Enable JitsiMeet";
|
||||
})
|
||||
// {
|
||||
meta = {
|
||||
type = "enable";
|
||||
};
|
||||
};
|
||||
};
|
||||
subdomain = (lib.mkOption {
|
||||
default = "meet";
|
||||
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||
description = "Subdomain";
|
||||
}) // {
|
||||
meta = {
|
||||
widget = "subdomain";
|
||||
type = "string";
|
||||
regex = "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||
weight = 0;
|
||||
subdomain =
|
||||
(lib.mkOption {
|
||||
default = "meet";
|
||||
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||
description = "Subdomain";
|
||||
})
|
||||
// {
|
||||
meta = {
|
||||
widget = "subdomain";
|
||||
type = "string";
|
||||
regex = "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||
weight = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
appName = (lib.mkOption {
|
||||
default = "Jitsi Meet";
|
||||
type = lib.types.str;
|
||||
description = "The name displayed in the web interface";
|
||||
}) // {
|
||||
meta = {
|
||||
type = "string";
|
||||
weight = 1;
|
||||
appName =
|
||||
(lib.mkOption {
|
||||
default = "Jitsi Meet";
|
||||
type = lib.types.str;
|
||||
description = "The name displayed in the web interface";
|
||||
})
|
||||
// {
|
||||
meta = {
|
||||
type = "string";
|
||||
weight = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -43,7 +49,9 @@ in
|
||||
(_: prev: {
|
||||
# We disable E2E for clients below
|
||||
jitsi-meet = prev.jitsi-meet.overrideAttrs (old: {
|
||||
meta = old.meta // { knownVulnerabilities = [ ]; };
|
||||
meta = old.meta // {
|
||||
knownVulnerabilities = [ ];
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
|
Reference in New Issue
Block a user