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

This commit is contained in:
Nick Cao
2025-03-06 17:12:52 -05:00
committed by GitHub
+8 -1
View File
@@ -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 = {