I want to schedule a job from wsl. The job will need to be run in the nix-shell and then in the python virtual environment under Nix-shell. I try to do this by writing a shell script, run ./enter.sh.
#!/bin/bash
nix-shell -p python38Full python38Packages.virtualenv;
source .venv/bin/activate
However, it doesn't enter the
(virt)
[nix-shell:xxx]
after I run ./enter.sh. I need to first run the first line, then run the second line separately.
It would be super helpful if someone knows a way to write a shell script that can do these two steps by running one script.