From d09394f0e3d86186b6f427ce9a34e49f1e27be75 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Wed, 19 Nov 2025 13:01:06 +0100 Subject: [PATCH] simplify nix shell --- shell.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/shell.nix b/shell.nix index 24c9f36..3e53187 100644 --- a/shell.nix +++ b/shell.nix @@ -8,7 +8,6 @@ pkgs.mkShell { shellHook = let venvPath = "$HOME/.venv/homepage"; - remoteHost = "vps"; in '' # Set uv to use specific virtual environment path export UV_PROJECT_ENVIRONMENT=${venvPath} @@ -21,13 +20,8 @@ pkgs.mkShell { # Define aliases 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 " serve - Watch and rebuild on changes (dev mode)" - echo " build - Generate the static site" - echo " sync - Build and sync with remote production server" - + echo " serve - Watch and rebuild on changes" ''; }