Created
March 29, 2024 00:20
-
-
Save mikelane/2ef0cdcd8300e4893e25aece471f419b to your computer and use it in GitHub Desktop.
$HOME/workplace/infrastructure/.envrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export FLAKE_BASE=$HOME/nixos/my-company | |
export FLAKE_PATH=$FLAKE_BASE/${PWD##*/} | |
watch_file $FLAKE_PATH/flake.nix | |
watch_file .env | |
use flake $FLAKE_PATH --impure | |
export PYTHONPATH=$PWD | |
local VENV=$(dirname $(poetry run which python)) | |
export VIRTUAL_ENV=$(echo "$VENV" | rev | cut -d'/' -f2- | rev) | |
export POETRY_ACTIVE=1 | |
PATH_add "$VENV" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment