I am trying to package mutt-wizard, which is basically a configuration manager for neomutt. At first, it worked great, I wrote it and published in my NUR repo:
When you add an account this script creates muttrc files in your home. And it starts like that:
# vim: filetype=neomuttrc source /nix/store/bbsg34b9vi1rgq174gbrn82kcbb2hl59-mutt-wizard/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated set charset = "utf-8" set send_charset = "utf-8:us-ascii:iso-8859-1" set config_charset = "utf-8"
I’m pointing to master branch on NUR so it was cached only for 1 hour. So if I run
nixos-rebuild it creates a new store entry with a new hash. And it stops working after
nix-collect-garbage -d, which is clear why.
Can I do something about it? With
/etc we can symlink files from the nix store. Maybe it is possible to link
/usr/local/share as well? Or maybe there is an even more nix-friendly solution?