From e7348801ed015df9771dce5531d2f7c8b7565660 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 2 Mar 2025 09:46:56 -0500 Subject: [PATCH] nixos/dendrite: rename settings.sync_api.search.enable option to settings.sync_api.search.enabled --- nixos/modules/services/matrix/dendrite.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 = {