nixos/dendrite: rename settings.sync_api.search.enable option to sett… (#386393)

authored by Nick Cao and committed by GitHub f0f00d4c 83d5ffe4

+8 -1
+8 -1
nixos/modules/services/matrix/dendrite.nix
··· 211 211 }; 212 212 }; 213 213 options.sync_api.search = { 214 - enable = lib.mkEnableOption "Dendrite's full-text search engine"; 214 + enabled = lib.mkEnableOption "Dendrite's full-text search engine"; 215 215 index_path = lib.mkOption { 216 216 type = lib.types.str; 217 217 default = "${workingDir}/searchindex"; ··· 285 285 If Dendrite is configured to use https, tlsCert and tlsKey must be provided. 286 286 287 287 nix-shell -p dendrite --command "generate-keys --tls-cert server.crt --tls-key server.key" 288 + ''; 289 + } 290 + { 291 + assertion = !(cfg.settings.sync_api.search ? enable); 292 + message = '' 293 + The `services.dendrite.settings.sync_api.search.enable` option 294 + has been renamed to `services.dendrite.settings.sync_api.search.enabled`. 288 295 ''; 289 296 } 290 297 ];