feat(capytal,peertube): capytal's peertube instance

This commit is contained in:
Guz
2025-11-30 20:39:31 -03:00
parent 470d719f80
commit 9ad046f2be
5 changed files with 191 additions and 7 deletions

View File

@@ -1,22 +1,21 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.services.postgresql;
cfgadm = config.services.pgadmin;
in {
services.postgresql = {
enable = true;
enableTCPIP = true;
authentication = lib.mkForce ''
#type database DBuser origin-address auth-method
local all all trust
# ipv4
host all all 172.0.0.1/32 trust
host all all 127.0.0.1/32 trust
# ipv6
host all all ::1/128 trust
'';
enable = true;
ensureDatabases = [
"forgejo"
"nextcloud"
@@ -31,7 +30,6 @@ in {
ensureDBOwnership = true;
}
];
enableTCPIP = true;
settings = {
port = 3245;
};