From cc9996dd62f15a72aa2db7bc88c99125e223a4d0 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Wed, 23 Jun 2021 14:38:30 -0400 Subject: [PATCH] Add hugo module --- modules/hugo.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/hugo.nix diff --git a/modules/hugo.nix b/modules/hugo.nix new file mode 100644 index 0000000..efc58b3 --- /dev/null +++ b/modules/hugo.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: + +let + myUpdateSite = pkgs.writeShellScriptBin "dotfiles-update-site" '' + rsync -aP /etc/dotfiles/docs/public ubuntu@chrishayward.xyz:/var/www/chrishayward + ''; + +in { + environment.systemPackages = [ + pkgs.hugo + myUpdateSite + ]; +}