Add owncast

This commit is contained in:
Natsu Kagami 2023-10-19 23:28:04 +02:00
parent 8a430a1399
commit 5d2ea18b48
Signed by: nki
GPG key ID: 55A032EB38B49ADB
3 changed files with 21 additions and 0 deletions

View file

@ -21,6 +21,7 @@ with lib; {
tdesktop
whatsapp-for-linux
obs-studio
]
else [ ]
);

View file

@ -21,6 +21,7 @@
./synapse.nix
./phanpy.nix
./invidious.nix
./owncast.nix
];
common.linux.enable = false; # Don't enable the "common linux" module, this is a special machine.

View file

@ -0,0 +1,19 @@
{ pkgs, config, lib, ... }:
let
host = "owncast.nkagami.me";
port = 61347;
user = "owncast";
in
{
# traefik
cloud.traefik.hosts.owncast = {
inherit port host;
};
services.owncast = {
inherit user port;
listen = "0.0.0.0"; # Listen to direct IP requests too
enable = true;
openFirewall = true;
dataDir = "${config.fileSystems.data.mountPoint}/owncast";
};
}