From dfb649d28d1f7633ecb79013111f6d482d3893be Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 11 Apr 2022 19:46:47 -0400 Subject: [PATCH] Add build script --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index df30222..6702379 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,9 @@ let pkgs = nixpkgs.legacyPackages.${system}; weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; + weddingSiteBuild = pkgs.writeShellScriptBind "wedding-site-build" '' + pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd + ''; weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' ${pkgs.rsync}/bin/rsync -aP ${weddingSiteDir} ${weddingSiteTgt} '';