Skip to content

Instantly share code, notes, and snippets.

@mikelane
Created March 29, 2024 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikelane/2ef0cdcd8300e4893e25aece471f419b to your computer and use it in GitHub Desktop.
Save mikelane/2ef0cdcd8300e4893e25aece471f419b to your computer and use it in GitHub Desktop.
$HOME/workplace/infrastructure/.envrc
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