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 = {
|
systemd.services.heisenbridge = {
|
||||||
description = "Matrix<->IRC bridge";
|
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" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = rec {
|
serviceConfig = rec {
|
||||||
|
|
|
@ -114,7 +114,7 @@ in
|
||||||
WorkingDirectory = "/var/lib/gotosocial";
|
WorkingDirectory = "/var/lib/gotosocial";
|
||||||
};
|
};
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
requires = [ "minio.service" ];
|
requires = [ "minio.service" "postgresql.service" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,6 +275,7 @@ in
|
||||||
systemd.services."${name}" = {
|
systemd.services."${name}" = {
|
||||||
after = [ "network.target" "traefik-certs-dumper.service" ];
|
after = [ "network.target" "traefik-certs-dumper.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
requires = [ "postgresql.service" ];
|
||||||
|
|
||||||
description = "maddy mail server";
|
description = "maddy mail server";
|
||||||
documentation = [
|
documentation = [
|
||||||
|
|
|
@ -231,6 +231,7 @@
|
||||||
forceHttps = false;
|
forceHttps = false;
|
||||||
};
|
};
|
||||||
cloud.postgresql.databases = [ "outline" ];
|
cloud.postgresql.databases = [ "outline" ];
|
||||||
|
systemd.services.outline.requires = [ "postgresql.service" ];
|
||||||
cloud.traefik.hosts.outline = { host = "wiki.dtth.ch"; port = 18729; };
|
cloud.traefik.hosts.outline = { host = "wiki.dtth.ch"; port = 18729; };
|
||||||
|
|
||||||
# GoToSocial
|
# GoToSocial
|
||||||
|
|
|
@ -83,6 +83,8 @@ in
|
||||||
noCloudflare = true;
|
noCloudflare = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.gitea.requires = [ "postgresql.service" ];
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ rec {
|
||||||
noCloudflare = true;
|
noCloudflare = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.headscale.requires = [ "postgresql.service" ];
|
||||||
services.headscale = {
|
services.headscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit port;
|
inherit port;
|
||||||
|
|
|
@ -42,7 +42,8 @@ in
|
||||||
systemd.services.miniflux = {
|
systemd.services.miniflux = {
|
||||||
description = "Miniflux service";
|
description = "Miniflux service";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" "postgresql.service" ];
|
after = [ "network.target" ];
|
||||||
|
requires = [ "postgresql.service" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${package}/bin/miniflux";
|
ExecStart = "${package}/bin/miniflux";
|
||||||
|
|
|
@ -16,6 +16,7 @@ in
|
||||||
cloud.traefik.hosts.nextcloud = {
|
cloud.traefik.hosts.nextcloud = {
|
||||||
inherit port host;
|
inherit port host;
|
||||||
};
|
};
|
||||||
|
systemd.services.nextcloud.requires = [ "postgresql.service" ];
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = host;
|
hostName = host;
|
||||||
|
|
|
@ -23,6 +23,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
# Synapse instance for DTTH
|
# Synapse instance for DTTH
|
||||||
|
systemd.services.matrix-synapse.requires = [ "postgresql.service" ];
|
||||||
|
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withJemalloc = true;
|
withJemalloc = true;
|
||||||
|
|
Loading…
Reference in a new issue