nixfiles/hosts/raspberry/profiles/piped.nix

35 lines
887 B
Nix
Raw Normal View History

2023-09-19 17:53:44 +01:00
{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
};
}