summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/direnv/direnvrc1
-rwxr-xr-xhooks/pre-up/2-nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/direnv/direnvrc b/config/direnv/direnvrc
new file mode 100644
index 0000000..94d4f9e
--- /dev/null
+++ b/config/direnv/direnvrc
@@ -0,0 +1 @@
+source /home/mccd/.nix-profile/share/nix-direnv/direnvrc
diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix
index cfba81f..945bf48 100755
--- a/hooks/pre-up/2-nix
+++ b/hooks/pre-up/2-nix
@@ -4,5 +4,6 @@ if ! [ -x "$(command -v nix)" ]; then
echo "Installing Nix"
sudo install -d -m755 -o $(id -u) -g $(id -g) /nix
curl -L https://nixos.org/nix/install | sh
+ nix profile install nixpkgs#nix-direnv
fi