You could put the pkgs.tesseract pkg in your nix config if you know how. Here are the config docs
pkgs.tesseract