summaryrefslogtreecommitdiff
path: root/install.sh
blob: fb37c4a6c27e2930b691518c6155838c2d36d598 (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/home.nix ~/.config/nixpkgs/home.nix