this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use Nix to provision system tools

+131 -2
+1 -1
Makefile
··· 5 5 6 6 export PWD = $(shell pwd) 7 7 8 - TARGETS ?= nvim tmux git conky gdb ruby utils bin fish 8 + TARGETS ?= nvim tmux git conky gdb ruby utils bin fish nix 9 9 10 10 all: $(TARGETS) 11 11
+26 -1
fish/init.fish
··· 1 1 set fish_greeting (fortune zen) 2 2 # set fish_key_bindings fish_vi_key_bindings 3 3 4 - set -gx PATH $HOME/.local/bin $GOPATH/bin $HOME/.cabal/bin $PATH 4 + set -x PATH $HOME/.local/bin $GOPATH/bin $HOME/.cabal/bin $PATH 5 + 6 + if test -n "$HOME" 7 + set NIX_LINK "$HOME/.nix-profile" 8 + 9 + # Set the default profile. 10 + if not [ -L "$NIX_LINK" ] 11 + echo "creating $NIX_LINK" >&2 12 + set _NIX_DEF_LINK /nix/var/nix/profiles/default 13 + /nix/store/4lrli8ng5i54k14id152svvp1kvqsn92-coreutils-8.21/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK" 14 + end 15 + 16 + set -x PATH $NIX_LINK/bin $NIX_LINK/sbin $PATH 17 + 18 + # Subscribe the root user to the Nixpkgs channel by default. 19 + if [ ! -e $HOME/.nix-channels ] 20 + echo "http://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels 21 + end 22 + 23 + # Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that 24 + # <nixpkgs> paths work when the user has fetched the Nixpkgs 25 + # channel. 26 + set -x NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs 27 + end 28 + 29 + available hub; and eval (hub alias -s) 5 30 6 31 if [ -z "$TMUX" ] 7 32 set -gx TERM xterm-256color
+8
nix/Makefile
··· 1 + install: nix 2 + $(LN) . ${HOME}/.nixpkgs 3 + ${HOME}/.nix-profile/bin/nix-channel --update 4 + ${HOME}/.nix-profile/bin/nix-env -i homeEnv 5 + ${HOME}/.nix-profile/bin/nix-collect-garbage -d 6 + 7 + nix: install.sh 8 + test -d "/nix" || sh install.sh
+49
nix/config.nix
··· 1 + { 2 + packageOverrides = pkgs: 3 + rec { 4 + homeEnv = pkgs.buildEnv { 5 + name = "homeEnv"; 6 + paths = [ 7 + languages 8 + editors 9 + scm 10 + tools 11 + ]; 12 + }; 13 + 14 + languages = pkgs.buildEnv { 15 + name = "languages"; 16 + paths = [ 17 + pkgs.go 18 + pkgs.scala 19 + pkgs.sbt 20 + pkgs.julia 21 + pkgs.elixir 22 + ]; 23 + }; 24 + 25 + editors = pkgs.buildEnv { 26 + name = "editors"; 27 + paths = [ 28 + pkgs.neovim 29 + ]; 30 + }; 31 + 32 + scm = pkgs.buildEnv { 33 + name = "scm"; 34 + paths = [ 35 + pkgs.git 36 + pkgs.gitAndTools.hub 37 + ]; 38 + }; 39 + 40 + tools = pkgs.buildEnv { 41 + name = "tools"; 42 + paths = [ 43 + pkgs.silver-searcher 44 + pkgs.jq 45 + pkgs.wrk 46 + ]; 47 + }; 48 + }; 49 + }
+46
nix/install.sh
··· 1 + 2 + #!/bin/sh 3 + 4 + # This script installs the Nix package manager on your system by 5 + # downloading a binary distribution and running its installer script 6 + # (which in turn creates and populates /nix). 7 + 8 + { # Prevent execution if this script was only partially downloaded 9 + 10 + unpack=nix-binary-tarball-unpack 11 + 12 + require_util() { 13 + type "$1" > /dev/null 2>&1 || which "$1" > /dev/null 2>&1 || 14 + oops "you do not have \`$1' installed, which i need to $2" 15 + } 16 + 17 + oops() { 18 + echo "$0: $@" >&2 19 + rm -rf "$unpack" 20 + exit 1 21 + } 22 + 23 + case "$(uname -s).$(uname -m)" in 24 + Linux.x86_64) system=x86_64-linux;; 25 + Linux.i?86) system=i686-linux;; 26 + Darwin.x86_64) system=x86_64-darwin;; 27 + *) oops "sorry, there is no binary distribution of Nix for your platform";; 28 + esac 29 + 30 + url="https://nixos.org/releases/nix/nix-1.10/nix-1.10-$system.tar.bz2" 31 + 32 + require_util curl "download the binary tarball" 33 + require_util bzcat "decompress the binary tarball" 34 + require_util tar "unpack the binary tarball" 35 + 36 + echo "unpacking Nix binary tarball for $system from \`$url'..." 37 + mkdir "$unpack" || oops "failed to create \`$unpack' directory" 38 + curl -L "$url" | bzcat | tar x -C "$unpack" || oops "failed to unpack \`$url'" 39 + 40 + [ -e "$unpack"/*/install ] || 41 + oops "installation script is missing from the binary tarball!" 42 + 43 + "$unpack"/*/install 44 + rm -rf "$unpack" 45 + 46 + } # End of wrapping
+1
nvim/init.vim
··· 22 22 Plug 'pangloss/vim-javascript' 23 23 Plug 'rust-lang/rust.vim' 24 24 Plug 'tmux-plugins/vim-tmux' 25 + Plug 'LnL7/vim-nix' 25 26 26 27 " Git 27 28 Plug 'airblade/vim-gitgutter'