summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-11-14 14:58:30 -0800
committerBen Sima <ben@bsima.me>2018-11-14 14:58:30 -0800
commit36d641d4f4d91d06a9b279050d985813bfb064a4 (patch)
tree0a1ec886b22266f8a8e3b624cb905291cb84e958
parentee66111ba1ff1bb5e74fd836aa883204e59b0310 (diff)
Symlink stuff before installing
-rwxr-xr-xinstall.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 1b40c4e..c00066d 100755
--- a/install.sh
+++ b/install.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-nix-shell ./home-manager -A install
+echo "Symlinking directories"
mkdir -p ~/.config/nixpkgs
@@ -17,4 +17,11 @@ NIXFILE="$(pwd)/$(uname | tr A-Z a-z).nix"
# 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.
+
+mkdir -p ~/.config/notmuch
[[ -e ~/.notmuch-config ]] || ln -s ~/.config/notmuch/notmuchrc ~/.notmuch-config
+
+
+# Symlinking must occure before initial generation
+
+nix-shell ./home-manager -A install