diff options
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..8e0ca70 --- /dev/null +++ b/install.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -eu + +if [ -z "$1" ] +then + echo "Usage: $0 <machine-file.nix>" + exit 1 +fi + +NIXDIR="$HOME/.config/nixpkgs" + +if [ ! -f "$1" ] +then + echo "$1 does not exist" + exit 1 +fi + +ln -s $PWD $NIXDIR +ln -s $1 home.nix |