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.

21 lines
553 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/chrishayward";
  6. mySiteBuild = pkgs.writeShellScriptBin "my-site-build" ''
  7. pushd ${mySiteDir}../ > /dev/null &&
  8. ${pkgs.hugo}/bin/hugo -v ;
  9. popd > /dev/null
  10. '';
  11. mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
  12. ${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}
  13. '';
  14. in {
  15. environment.systemPackages = [
  16. mySiteBuild
  17. mySiteUpdate
  18. ];
  19. }