simplify nix shell

This commit is contained in:
Yan Lin 2025-11-19 13:01:06 +01:00
parent c7fa394ab9
commit d09394f0e3

View file

@ -8,7 +8,6 @@ pkgs.mkShell {
shellHook = let shellHook = let
venvPath = "$HOME/.venv/homepage"; venvPath = "$HOME/.venv/homepage";
remoteHost = "vps";
in '' in ''
# Set uv to use specific virtual environment path # Set uv to use specific virtual environment path
export UV_PROJECT_ENVIRONMENT=${venvPath} export UV_PROJECT_ENVIRONMENT=${venvPath}
@ -21,13 +20,8 @@ pkgs.mkShell {
# Define aliases # Define aliases
alias serve="python generate.py && python watch.py" alias serve="python generate.py && python watch.py"
alias build="python generate.py"
alias sync="python generate.py && rsync -avP --delete ./dist/* ${remoteHost}:~/www/homepage"
echo "Available commands:" echo "Available commands:"
echo " serve - Watch and rebuild on changes (dev mode)" echo " serve - Watch and rebuild on changes"
echo " build - Generate the static site"
echo " sync - Build and sync with remote production server"
''; '';
} }