nixos/dendrite: rename settings.sync_api.search.enable option to sett… (#386393)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user