Add postgresql dep to most stuff that needs it
This commit is contained in:
parent
5aaf1f044d
commit
1168c85ecf
|
@ -33,7 +33,7 @@ with lib; {
|
|||
{
|
||||
systemd.services.heisenbridge = {
|
||||
description = "Matrix<->IRC bridge";
|
||||
before = [ "matrix-synapse.service" ]; # So the registration file can be used by Synapse
|
||||
requires = [ "matrix-synapse.service" ]; # So the registration file can be used by Synapse
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = rec {
|
||||
|
|
|
@ -114,7 +114,7 @@ in
|
|||
WorkingDirectory = "/var/lib/gotosocial";
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "minio.service" ];
|
||||
requires = [ "minio.service" "postgresql.service" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -275,6 +275,7 @@ in
|
|||
systemd.services."${name}" = {
|
||||
after = [ "network.target" "traefik-certs-dumper.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "postgresql.service" ];
|
||||
|
||||
description = "maddy mail server";
|
||||
documentation = [
|
||||
|
|
|
@ -231,6 +231,7 @@
|
|||
forceHttps = false;
|
||||
};
|
||||
cloud.postgresql.databases = [ "outline" ];
|
||||
systemd.services.outline.requires = [ "postgresql.service" ];
|
||||
cloud.traefik.hosts.outline = { host = "wiki.dtth.ch"; port = 18729; };
|
||||
|
||||
# GoToSocial
|
||||
|
|
|
@ -83,6 +83,8 @@ in
|
|||
noCloudflare = true;
|
||||
};
|
||||
|
||||
systemd.services.gitea.requires = [ "postgresql.service" ];
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ rec {
|
|||
noCloudflare = true;
|
||||
};
|
||||
|
||||
systemd.services.headscale.requires = [ "postgresql.service" ];
|
||||
services.headscale = {
|
||||
enable = true;
|
||||
inherit port;
|
||||
|
|
|
@ -42,7 +42,8 @@ in
|
|||
systemd.services.miniflux = {
|
||||
description = "Miniflux service";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" "postgresql.service" ];
|
||||
after = [ "network.target" ];
|
||||
requires = [ "postgresql.service" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${package}/bin/miniflux";
|
||||
|
|
|
@ -16,6 +16,7 @@ in
|
|||
cloud.traefik.hosts.nextcloud = {
|
||||
inherit port host;
|
||||
};
|
||||
systemd.services.nextcloud.requires = [ "postgresql.service" ];
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
hostName = host;
|
||||
|
|
|
@ -23,6 +23,8 @@ in
|
|||
};
|
||||
|
||||
# Synapse instance for DTTH
|
||||
systemd.services.matrix-synapse.requires = [ "postgresql.service" ];
|
||||
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
withJemalloc = true;
|
||||
|
|
Loading…
Reference in a new issue