summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index fb37c4a..a9bf4d8 100755
--- a/install.sh
+++ b/install.sh
@@ -11,3 +11,10 @@ nix-shell $HM_PATH -A install
mkdir -p ~/.config
[[ -L ~/config ]] && ln -s ~/config/home.nix ~/.config/nixpkgs/home.nix
+
+# The notmuch config location is by default ~/.notmuch-config, but home-manager
+# puts it at ~/.config/notmuch/notmuchrc (which makes sense) and then sets
+# NOTMUCH_CONFIG. However, if a program for some reason doesn't read
+# NOTMUCH_CONFIG (emacs), then it won't find the right config file, so I
+# override with a symlink.
+[[ -L ~/.notmuch-config ]] && ln -s ~/.config/notmuch/notmuchrc ~/.notmuch-config