summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-09-22 18:33:50 -0700
committerBen Sima <ben@bsima.me>2018-09-22 18:33:50 -0700
commit501c28c8f1d477fc60f0f9febe40039415817e81 (patch)
tree2c7ee220fa64f43993d3a70e16be3bece9dea207
parentd147b1ec0c3f43e33c1bddb85a626513a93673dc (diff)
Accomodate installing on macOS
-rwxr-xr-xinstall.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index cd0f747..2630d04 100755
--- a/install.sh
+++ b/install.sh
@@ -7,4 +7,7 @@ HM_PATH=https://github.com/rycee/home-manager/archive/master.tar.gz
nix-shell $HM_PATH -A install
+# macOS doesn't have a ~/.config directory by default
+mkdir -p ~/.config
+
[[ -L ~/config ]] && ln -s ~/config ~/.config/nixpkgs