Set up peertube

This commit is contained in:
Natsu Kagami 2024-03-16 15:35:12 +01:00
parent 662be5e96d
commit be5237eeeb
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 31 additions and 0 deletions

View file

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

View file

@ -0,0 +1,30 @@
{ cfg, lib, pkgs, ... }:
let
secrets = config.sops.secrets;
host = "peertube.dtth.ch";
port = 19878;
in
{
# database
cloud.postgresql.databases = [ "peertube" ];
# traefik
cloud.traefik.hosts.peertube = {
inherit port host;
};
services.peertube = {
enable = true;
enableWebHttps = true;
listenWeb = "443";
listenHttp = port;
localDomain = host;
# Databases
redis.createLocally = true;
database = {
host = "/run/postgresql";
};
};
}