This commit is contained in:
parent
e5791f5c7e
commit
51b91cbf2b
4 changed files with 48 additions and 0 deletions
|
@ -21,6 +21,11 @@
|
||||||
cli.podman.enable = true;
|
cli.podman.enable = true;
|
||||||
desktop.dconf.enable = true;
|
desktop.dconf.enable = true;
|
||||||
|
|
||||||
|
# TODO: why didn't it work when adding this to jitsi.nix?
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"jitsi-meet-1.0.8043"
|
||||||
|
];
|
||||||
|
|
||||||
services.logind.lidSwitchExternalPower = "ignore";
|
services.logind.lidSwitchExternalPower = "ignore";
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
homepage-dashboard.enable = true;
|
homepage-dashboard.enable = true;
|
||||||
immich.enable = true;
|
immich.enable = true;
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
|
jitsi.enable = true;
|
||||||
paperless.enable = true;
|
paperless.enable = true;
|
||||||
peertube.enable = true;
|
peertube.enable = true;
|
||||||
tubearchivist.enable = true;
|
tubearchivist.enable = true;
|
||||||
|
|
|
@ -26,6 +26,7 @@ with lib;
|
||||||
./home-assistant.nix
|
./home-assistant.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
./jitsi.nix
|
||||||
./nginx
|
./nginx
|
||||||
./paperless.nix
|
./paperless.nix
|
||||||
./peertube.nix
|
./peertube.nix
|
||||||
|
|
41
hosts/nixedo/modules/jitsi.nix
Normal file
41
hosts/nixedo/modules/jitsi.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homelab.services.${service};
|
||||||
|
homelab = config.homelab;
|
||||||
|
service = "jitsi";
|
||||||
|
|
||||||
|
inherit (lib) mkEnableOption mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.homelab.services.${service} = {
|
||||||
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
|
url = mkOption {
|
||||||
|
default = "meet.${homelab.domain}";
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services = {
|
||||||
|
jitsi-meet = {
|
||||||
|
enable = false;
|
||||||
|
|
||||||
|
hostName = cfg.url;
|
||||||
|
|
||||||
|
secureDomain.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nginx.virtualHosts.${cfg.url} = {
|
||||||
|
enableACME = false;
|
||||||
|
forceSSL = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
cloudflared.tunnels.${homelab.cloudflared.tunnelId}.ingress = {
|
||||||
|
# TODO: is this the correct port?
|
||||||
|
${cfg.url} = "http://localhost:5280";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue