I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
516 B

3 years ago
3 years ago
3 years ago
3 years ago
  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, pkgs, ... }:
  3. let
  4. mySiteDir = "/etc/dotfiles/docs/public/";
  5. mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
  6. mySiteBuild = pkgs.writeShellScriptBin "my-site-build" ''
  7. pushd ${mySiteDir}../ && ${pkgs.hugo}/bin/hugo -v ; popd
  8. '';
  9. mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
  10. ${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}
  11. '';
  12. in {
  13. environment.systemPackages = [
  14. mySiteBuild
  15. mySiteUpdate
  16. ];
  17. }