summaryrefslogtreecommitdiff
path: root/install.sh
blob: 2630d0464f3e45e7308e54244509aab4326c3264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
#
# Downloads and installs home-manager, then symlinks this directory where
# home-manager expects it.

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