summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/matrix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-12-24 07:14:48 +0530
committersinanmohd <sinan@sinanmohd.com>2023-12-30 00:25:57 +0530
commite8e5c07ad0b7ba7e068cf3de81823cb0fe238c3c (patch)
treea11aec50e839242189314b2c6952deb8f372cc24 /nixos/modules/services/matrix
parent8fc12bc705326f04e14862f93202d4e649ea267d (diff)
nixos/matrix-sliding-sync: rename, init dendrite
Diffstat (limited to 'nixos/modules/services/matrix')
-rw-r--r--nixos/modules/services/matrix/matrix-sliding-sync.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/modules/services/matrix/matrix-sliding-sync.nix b/nixos/modules/services/matrix/matrix-sliding-sync.nix
index 295be0c6bf16..8b22cd7dba80 100644
--- a/nixos/modules/services/matrix/matrix-sliding-sync.nix
+++ b/nixos/modules/services/matrix/matrix-sliding-sync.nix
@@ -1,10 +1,14 @@
{ config, lib, pkgs, ... }:
let
- cfg = config.services.matrix-synapse.sliding-sync;
+ cfg = config.services.matrix-sliding-sync;
in
{
- options.services.matrix-synapse.sliding-sync = {
+ imports = [
+ (lib.mkRenamedOptionModule [ "services" "matrix-synapse" "sliding-sync" ] [ "services" "matrix-sliding-sync" ])
+ ];
+
+ options.services.matrix-sliding-sync = {
enable = lib.mkEnableOption (lib.mdDoc "sliding sync");
package = lib.mkPackageOption pkgs "matrix-sliding-sync" { };
@@ -83,6 +87,7 @@ in
systemd.services.matrix-sliding-sync = rec {
after =
lib.optional cfg.createDatabase "postgresql.service"
+ ++ lib.optional config.services.dendrite.enable "dendrite.service"
++ lib.optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit;
wants = after;
wantedBy = [ "multi-user.target" ];