Can't find mu4e in Emacs load-path

I installed mu4e through home-manger on macOS Monterey , but when I config mu4e in Emacs, I found that the load-path does not have mu4e. Do I need any special settings?

  programs = {
    mu.enable = true;
    msmtp.enable = true;
    mbsync.enable = true;

Emacs 29 installed via emacs-overlay

  programs.emacs = {
    enable = true;
    package = pkgs.emacsGit;
    overrides = self: super: {
      org =;

This is the mu4e init.el setting:

(when (and (executable-find "mu") *is-a-mac*)
  (use-package mu4e
    :ensure nil
    (setq mu4e-mu-binary (executable-find "mu"))
    (setq mu4e-maildir "~/.maildir")))

Looking at my own config you may need to include mu in Emacs’ extra packages like so:

programs.emacs = {
  extraPackages = epkgs: [

@pbogdan Thank you very much. It works very well now.

1 Like