Browse Source

Update flake

master
parent
commit
b82d6090cc
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 4
      flake.nix

4
flake.nix

@ -10,7 +10,7 @@
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; weddingSiteDir = "$HOME/.local/source/wedding-site/public/";
weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
weddingSiteBuild = pkgs.writeShellScriptBind "wedding-site-build" ''
weddingSiteBuild = pkgs.writeShellScriptBin "wedding-site-build" ''
pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd
''; '';
weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" ''
@ -18,7 +18,7 @@
''; '';
in in
rec { rec {
devShell = pkgs.mkShell {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
weddingSiteBuild weddingSiteBuild
weddingSiteUpdate weddingSiteUpdate

Loading…
Cancel
Save