diff --git a/nix/home.nix b/nix/home.nix index 02ffd24..f508bb0 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -33,6 +33,15 @@ with lib; echo "CREATE DATABASE $USER;" | postgres --single -E postgres fi } + + layout_go() { + export GOPATH="$(direnv_layout_dir)/tmp/golibs" + if [[ ! -d "$GOPATH" ]]; then + mkdir -p $GOPATH + fi + + export PATH="$GOPATH/bin:$PATH" + } ''; };