Website for Chris & Scotia 2023
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.

26 lines
789 B

  1. {
  2. description = "Wedding site for Chris & Scotia 2023.";
  3. inputs = {
  4. flake-utils.url = "github:numtide/flake-utils";
  5. };
  6. outputs = inputs @ { self, nixpkgs, ... }:
  7. inputs.flake-utils.lib.eachDefaultSystem (system:
  8. let pkgs = nixpkgs.legacyPackages.${system};
  9. weddingSiteDir = "$HOME/.local/source/wedding-site/public/";
  10. weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
  11. weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" ''
  12. ${pkgs.rsync}/bin/rsync -aP ${weddingSiteDir} ${weddingSiteTgt}
  13. '';
  14. in
  15. rec {
  16. devShell = pkgs.mkShell {
  17. buildInputs = with pkgs; [
  18. hugo
  19. weddingSiteUpdate
  20. ];
  21. };
  22. }
  23. );
  24. }