···5566export PWD = $(shell pwd)
7788-TARGETS ?= nvim tmux git conky gdb ruby utils bin fish
88+TARGETS ?= nvim tmux git conky gdb ruby utils bin fish nix
991010all: $(TARGETS)
1111
+26-1
fish/init.fish
···11set fish_greeting (fortune zen)
22# set fish_key_bindings fish_vi_key_bindings
3344-set -gx PATH $HOME/.local/bin $GOPATH/bin $HOME/.cabal/bin $PATH
44+set -x PATH $HOME/.local/bin $GOPATH/bin $HOME/.cabal/bin $PATH
55+66+if test -n "$HOME"
77+ set NIX_LINK "$HOME/.nix-profile"
88+99+ # Set the default profile.
1010+ if not [ -L "$NIX_LINK" ]
1111+ echo "creating $NIX_LINK" >&2
1212+ set _NIX_DEF_LINK /nix/var/nix/profiles/default
1313+ /nix/store/4lrli8ng5i54k14id152svvp1kvqsn92-coreutils-8.21/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
1414+ end
1515+1616+ set -x PATH $NIX_LINK/bin $NIX_LINK/sbin $PATH
1717+1818+ # Subscribe the root user to the Nixpkgs channel by default.
1919+ if [ ! -e $HOME/.nix-channels ]
2020+ echo "http://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels
2121+ end
2222+2323+ # Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that
2424+ # <nixpkgs> paths work when the user has fetched the Nixpkgs
2525+ # channel.
2626+ set -x NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs
2727+end
2828+2929+available hub; and eval (hub alias -s)
530631if [ -z "$TMUX" ]
732 set -gx TERM xterm-256color
···11+22+#!/bin/sh
33+44+# This script installs the Nix package manager on your system by
55+# downloading a binary distribution and running its installer script
66+# (which in turn creates and populates /nix).
77+88+{ # Prevent execution if this script was only partially downloaded
99+1010+unpack=nix-binary-tarball-unpack
1111+1212+require_util() {
1313+ type "$1" > /dev/null 2>&1 || which "$1" > /dev/null 2>&1 ||
1414+ oops "you do not have \`$1' installed, which i need to $2"
1515+}
1616+1717+oops() {
1818+ echo "$0: $@" >&2
1919+ rm -rf "$unpack"
2020+ exit 1
2121+}
2222+2323+case "$(uname -s).$(uname -m)" in
2424+ Linux.x86_64) system=x86_64-linux;;
2525+ Linux.i?86) system=i686-linux;;
2626+ Darwin.x86_64) system=x86_64-darwin;;
2727+ *) oops "sorry, there is no binary distribution of Nix for your platform";;
2828+esac
2929+3030+url="https://nixos.org/releases/nix/nix-1.10/nix-1.10-$system.tar.bz2"
3131+3232+require_util curl "download the binary tarball"
3333+require_util bzcat "decompress the binary tarball"
3434+require_util tar "unpack the binary tarball"
3535+3636+echo "unpacking Nix binary tarball for $system from \`$url'..."
3737+mkdir "$unpack" || oops "failed to create \`$unpack' directory"
3838+curl -L "$url" | bzcat | tar x -C "$unpack" || oops "failed to unpack \`$url'"
3939+4040+[ -e "$unpack"/*/install ] ||
4141+ oops "installation script is missing from the binary tarball!"
4242+4343+"$unpack"/*/install
4444+rm -rf "$unpack"
4545+4646+} # End of wrapping