2023-09-14 19:44:27 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-09-18 03:56:58 +01:00
|
|
|
services.piped = {
|
2023-09-14 19:44:27 +01:00
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Takes too much time to compile otherwise, idm extra bandwidth
|
|
|
|
proxyPackage =
|
|
|
|
(pkgs.piped-proxy.override {
|
|
|
|
withAVIF = false;
|
|
|
|
withWebP = false;
|
|
|
|
})
|
|
|
|
.overrideAttrs {
|
|
|
|
pname = "piped-proxy-debug";
|
|
|
|
doCheck = false;
|
|
|
|
buildType = "debug";
|
|
|
|
};
|
|
|
|
|
2023-09-18 03:56:58 +01:00
|
|
|
postgresDBName = "piped";
|
|
|
|
postgresDBUsername = "piped";
|
|
|
|
postgresDBPassword = "piped";
|
|
|
|
postgresDBHost = "127.0.0.1";
|
|
|
|
postgresDBPort = 26257;
|
|
|
|
databaseDialect = "org.hibernate.dialect.CockroachDialect";
|
|
|
|
disablePostgresDB = true;
|
|
|
|
|
|
|
|
frontendDomain = "piped-uk.owo.monster";
|
|
|
|
backendDomain = "backend.piped-uk.owo.monster";
|
|
|
|
proxyDomain = "proxy.piped-uk.owo.monster";
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.piped-backend = {
|
|
|
|
after = ["cockroachdb.service"];
|
|
|
|
wants = ["cockroachdb.service"];
|
2023-09-14 19:44:27 +01:00
|
|
|
};
|
|
|
|
}
|