From d60f06407bc283da546bfe299f4e35da4ed4be16 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 31 Jul 2015 12:17:21 +0100 Subject: [PATCH] Add setup for Nix package manager --- shell/_main.sh | 3 +++ shell/nix.sh | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 shell/nix.sh diff --git a/shell/_main.sh b/shell/_main.sh index a5218f5..c3650c9 100644 --- a/shell/_main.sh +++ b/shell/_main.sh @@ -18,6 +18,9 @@ elif [ -n "$ZSH_VERSION" ]; then source "$DOTSHELL/zshrc.sh" fi +# Package management +source "$DOTSHELL/nix.sh" + # Aliases source "$DOTSHELL/aliases.sh" diff --git a/shell/nix.sh b/shell/nix.sh new file mode 100644 index 0000000..ded7eb5 --- /dev/null +++ b/shell/nix.sh @@ -0,0 +1,7 @@ +# +# Nix package manager +# + +if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then + source "$HOME/.nix-profile/etc/profile.d/nix.sh" +fi