diff --git a/nixos/modules/services/matrix/dendrite.nix b/nixos/modules/services/matrix/dendrite.nix index 2f17bb9f0727..290e76038025 100644 --- a/nixos/modules/services/matrix/dendrite.nix +++ b/nixos/modules/services/matrix/dendrite.nix @@ -211,7 +211,7 @@ in }; }; options.sync_api.search = { - enable = lib.mkEnableOption "Dendrite's full-text search engine"; + enabled = lib.mkEnableOption "Dendrite's full-text search engine"; index_path = lib.mkOption { type = lib.types.str; default = "${workingDir}/searchindex"; @@ -287,6 +287,13 @@ in nix-shell -p dendrite --command "generate-keys --tls-cert server.crt --tls-key server.key" ''; } + { + assertion = !(cfg.settings.sync_api.search ? enable); + message = '' + The `services.dendrite.settings.sync_api.search.enable` option + has been renamed to `services.dendrite.settings.sync_api.search.enabled`. + ''; + } ]; systemd.services.dendrite = {