From 5d2ea18b48906de433c2450df2bdc42ab33e2b0b Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 19 Oct 2023 23:28:04 +0200 Subject: [PATCH] Add owncast --- home/common-linux.nix | 1 + nki-personal-do/configuration.nix | 1 + nki-personal-do/owncast.nix | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 nki-personal-do/owncast.nix diff --git a/home/common-linux.nix b/home/common-linux.nix index 90974b2..a9c4323 100644 --- a/home/common-linux.nix +++ b/home/common-linux.nix @@ -21,6 +21,7 @@ with lib; { tdesktop whatsapp-for-linux + obs-studio ] else [ ] ); diff --git a/nki-personal-do/configuration.nix b/nki-personal-do/configuration.nix index 179c74b..1d63ccf 100644 --- a/nki-personal-do/configuration.nix +++ b/nki-personal-do/configuration.nix @@ -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. diff --git a/nki-personal-do/owncast.nix b/nki-personal-do/owncast.nix new file mode 100644 index 0000000..01de844 --- /dev/null +++ b/nki-personal-do/owncast.nix @@ -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"; + }; +}