nixfiles/hosts/raspberry/profiles/piped.nix
2023-09-19 17:53:44 +01:00

35 lines
887 B
Nix

{pkgs, ...}: {
services.piped = {
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";
};
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"];
};
}