From e838e10aa9a116979d5ca0500e0da0a45c2fb205 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 14 Mar 2022 22:59:40 -0400 Subject: [PATCH] Add shell.nix --- shell.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..c2a8f6f --- /dev/null +++ b/shell.nix @@ -0,0 +1,17 @@ +{ pkgs ? import { } }: + +let + myUpdateWeddingSite = pkgs.writeShellScriptBin "update-wedding-site" '' + ${pkgs.rsync}/bin/rsync -aP $HOME/.local/source/wedding-site/public ubuntu@chrishayward.xyz:/var/www/wedding + ''; + +in +with pkgs; +mkShell { + buildInputs = [ + pkgs.hugo + myUpdateWeddingSite + ]; + shellHook = '' + ''; +}