Use home directory for virtualenv

This commit is contained in:
Yan Lin 2025-07-28 19:06:00 +02:00
parent 581b70f40b
commit f34f664392

View file

@ -7,13 +7,17 @@ pkgs.mkShell {
];
shellHook = let
venvPath = "$HOME/.venv/homepage";
remoteHost = "personal-vps";
in ''
# Set uv to use specific virtual environment path
export UV_PROJECT_ENVIRONMENT=${venvPath}
# Install dependencies with uv
uv sync ${if dev then "--group dev" else ""}
# Activate the virtual environment
source .venv/bin/activate
source ${venvPath}/bin/activate
python generate.py