diff --git a/nixos/modules/services/search/meilisearch.nix b/nixos/modules/services/search/meilisearch.nix index 03b581c4d8cd..0194a658c0d3 100644 --- a/nixos/modules/services/search/meilisearch.nix +++ b/nixos/modules/services/search/meilisearch.nix @@ -129,6 +129,22 @@ in config = lib.mkIf cfg.enable { + warnings = lib.optional (lib.versionOlder cfg.package.version "1.12") '' + Meilisearch 1.11 will be removed in NixOS 25.11. As it was the last + version not to support dumpless upgrades, you will have to manually + migrate your data before that. Instructions can be found at + https://www.meilisearch.com/docs/learn/update_and_migration/updating#using-a-dump + and afterwards, you can set `services.meilisearch.package = pkgs.meilisearch;` + to use the latest version. + ''; + + services.meilisearch.package = lib.mkDefault ( + if lib.versionAtLeast config.system.stateVersion "25.05" then + pkgs.meilisearch + else + pkgs.meilisearch_1_11 + ); + # used to restore dumps environment.systemPackages = [ cfg.package ];