summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-08-28 19:20:44 -0700
committerBen Sima <ben@bsima.me>2019-08-28 19:20:44 -0700
commit2adb43a97b30ddd30e5c03c485725b1b3241e2eb (patch)
tree054a657fc2faba1f089947ec9fb027d25cf81d49 /install.sh
parentdb6d02e3a42d4264883a82d8f11a49848b77bd7f (diff)
pin nixpkgs
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index c6b9c35..1e8d2a9 100755
--- a/install.sh
+++ b/install.sh
@@ -9,18 +9,20 @@ NIXDIR="$HOME/.config/nixpkgs"
HOMEFILE="$NIXDIR/home.nix"
NIXFILE="$(pwd)/$1"
#
+#
[[ -e "$HOMEFILE" ]] || ln -s "$NIXFILE" "$HOMEFILE"
[[ -e "$NIXDIR/config.nix" ]] || ln -s "$(pwd)/lib/config.nix" "$NIXDIR/config.nix"
#
-# The notmuch config location is by default ~/.notmuch-config, but home-manager
+# 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. 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 occur before initial generation
+# symlinking must occur before initial generation. now we can install, and
+# pin our own nixpkgs.
#
-nix-shell ./home-manager -A install
+nix-shell ./default.nix -A install