diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-03-08 21:30:37 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-03-08 21:30:37 +0300 |
commit | 04be52d7b75eb62203a3af8d85e36e3584123f90 (patch) | |
tree | 5ad22924998c10c45834eadae6c0498a3ac4be1b /modules/nixos/matrix | |
parent | 2024-03-04 (diff) |
2024-03-08
Diffstat (limited to 'modules/nixos/matrix')
-rw-r--r-- | modules/nixos/matrix/dendrite.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/nixos/matrix/dendrite.nix b/modules/nixos/matrix/dendrite.nix index d5c9308..c65b55b 100644 --- a/modules/nixos/matrix/dendrite.nix +++ b/modules/nixos/matrix/dendrite.nix @@ -106,8 +106,9 @@ in { systemd.services.dendrite = { description = "Dendrite Matrix homeserver"; - requires = ["network.target"]; wantedBy = ["multi-user.target"]; + requires = ["network.target" "postgresql.service"]; + after = ["network.target" "postgresql.service"]; serviceConfig = let needsPrivileges = cfg.port < 1024; capabilities = [""] ++ optionals needsPrivileges ["CAP_NET_BIND_SERVICE"]; |