[Nix-dev] writing a muttrc configuration file

Hendrik Bunke bunke.hendrik at gmail.com
Fri May 29 12:53:26 CEST 2015


--On 2015-05-29 18:33, stewart mackenzie wrote:
> Okay yes it wrote to /nix/store, so this approach won't work as Mutt
> won't see /nix/store/kl3v8gvzk4c3q7zfjcjpm4kb3c248ahl-muttrc/root
> 
> So it would be great to open Mutt and it automatically opens to the
> correct location: /var/spool/mail/root
> and not /var/mail/root
> 
> How do I do this?

You can override configureFlags with pkg.lib.overrideDerivation.
configure flag should be (I guess)
--with-mail-path="/var/spool/mail"

See the docs here:
http://nixos.org/nixos/manual/sec-package-management.html#sec-customising-packages

regards
hendrik

-- 
Dr. Hendrik Bunke
http://gplus.to/hbunke
http://twitter.com/hbunke
http://www.hbxt.org


More information about the nix-dev mailing list