|
@ -10,7 +10,7 @@ |
|
|
let pkgs = nixpkgs.legacyPackages.${system}; |
|
|
let pkgs = nixpkgs.legacyPackages.${system}; |
|
|
weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; |
|
|
weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; |
|
|
weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; |
|
|
weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; |
|
|
weddingSiteBuild = pkgs.writeShellScriptBind "wedding-site-build" '' |
|
|
|
|
|
|
|
|
weddingSiteBuild = pkgs.writeShellScriptBin "wedding-site-build" '' |
|
|
pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd |
|
|
pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd |
|
|
''; |
|
|
''; |
|
|
weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' |
|
|
weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' |
|
@ -18,7 +18,7 @@ |
|
|
''; |
|
|
''; |
|
|
in |
|
|
in |
|
|
rec { |
|
|
rec { |
|
|
devShell = pkgs.mkShell { |
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell { |
|
|
buildInputs = with pkgs; [ |
|
|
buildInputs = with pkgs; [ |
|
|
weddingSiteBuild |
|
|
weddingSiteBuild |
|
|
weddingSiteUpdate |
|
|
weddingSiteUpdate |
|
|