mkdir projectname
cd projectname
initating the template
nix flake init --template github:the-nix-way/dev-template#python # this should be in bash
creating virtual env
virtualenv .
activating the virtual environment
source bin/activate
now you have a python dev enrinment in nix
mkdir projectname
cd projectname
first get temp shell with poetry (this is for making poetry.lock file)
nix-shell -p python3 poetry --command zsh
initialze the project (answer the questions)
poetry init
generate lock file
poetry lock
exit dev shell
exit
now initate a flake with poetry2nix (use bash)
nix flake init --template templates#python
now enter the dev environment
nix develop --command zsh
now you have a python dev enrinment in nix