Browse Source

Rename module commands

main
parent
commit
0dc1d73770
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 4
      README.org
  2. 4
      modules/hugo.nix

4
README.org

@ -696,12 +696,12 @@ Apply some configuration to the default settings:
let let
mySiteDir = "/etc/dotfiles/docs/public/"; mySiteDir = "/etc/dotfiles/docs/public/";
mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/chrishayward"; mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/chrishayward";
mySiteBuild = pkgs.writeShellScriptBin "my-site-build" ''
mySiteBuild = pkgs.writeShellScriptBin "site-build" ''
pushd ${mySiteDir}../ > /dev/null && pushd ${mySiteDir}../ > /dev/null &&
${pkgs.hugo}/bin/hugo -v ; ${pkgs.hugo}/bin/hugo -v ;
popd > /dev/null popd > /dev/null
''; '';
mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
mySiteUpdate = pkgs.writeShellScriptBin "site-update" ''
${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt} ${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}
''; '';

4
modules/hugo.nix

@ -4,12 +4,12 @@
let let
mySiteDir = "/etc/dotfiles/docs/public/"; mySiteDir = "/etc/dotfiles/docs/public/";
mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/chrishayward"; mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/chrishayward";
mySiteBuild = pkgs.writeShellScriptBin "my-site-build" ''
mySiteBuild = pkgs.writeShellScriptBin "site-build" ''
pushd ${mySiteDir}../ > /dev/null && pushd ${mySiteDir}../ > /dev/null &&
${pkgs.hugo}/bin/hugo -v ; ${pkgs.hugo}/bin/hugo -v ;
popd > /dev/null popd > /dev/null
''; '';
mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
mySiteUpdate = pkgs.writeShellScriptBin "site-update" ''
${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt} ${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}
''; '';

Loading…
Cancel
Save