From 0c8dff66de394f94f4f1b2225aa9575319db926e Mon Sep 17 00:00:00 2001 From: Johannes Maier Date: Mon, 16 Oct 2023 09:42:10 +0200 Subject: [PATCH] docs(mu4e): update NixOS installation instructions Recently, the Emacs package 'mu4e' has been moved into a separate derivation output. Now you need both the 'mu' package (installing the program) as well as its 'mu4e' output, which adds the Emacs package to the system. Ref: https://github.com/NixOS/nixpkgs/commit/ac4f5079f7e668afa312458d621dad7fc0320f9b --- modules/email/mu4e/README.org | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/modules/email/mu4e/README.org b/modules/email/mu4e/README.org index 548bf7080..30a204df8 100644 --- a/modules/email/mu4e/README.org +++ b/modules/email/mu4e/README.org @@ -93,12 +93,24 @@ If you use =msmtp=: #+begin_src nix environment.systemPackages = with pkgs; [ mu + # For nixpkgs versions after 23.05: this installs Emacs with mu4e already + # included (you still need mu above; it just doesn't ship with mu4e anymore) + ((emacsPackagesFor emacs).emacsWithPackages (epkgs: [ epkgs.mu4e ])) # And one of the following isync offlineimap ]; #+end_src +If you use ~home-manager~ you should specify ~mu4e~ as an additionally included +package as follows (requires ~nixpkgs~ > 23.05): +#+begin_src nix +programs.emacs = { + enable = true; + extraPackages = epkgs: [ epkgs.mu4e ]; +} +#+end_src + [[https://github.com/Emiller88/dotfiles/blob/5eaabedf1b141c80a8d32e1b496055231476f65e/modules/shell/mail.nix][An example of setting up mbsync and mu with home-manager]] * TODO Usage @@ -356,9 +368,9 @@ mail retrieval/indexing, change the value of ~mu4e-update-interval~: You will get =No such file or directory, mu4e= errors if you don't run ~$ doom sync~ after installing =mu= through your package manager. -Some times the ~mu~ package does not include ~mu4e~ (*cough Ubuntu*). if -that's the case you will need to [[https://github.com/djcb/mu][install]] it and add it to your ~load-path~ you -can do that by: +Sometimes the ~mu~ package does not include ~mu4e~ (*cough Ubuntu*). If that's +the case you will need to [[https://github.com/djcb/mu][install]] it and add it to your ~load-path~. You can +do that by: #+begin_src emacs-lisp (add-to-list 'load-path "your/path/to/mu4e") ;; if you installed it using your package manager