site

files for beauhilton.com
git clone https://git.beauhilton.com/site.git
Log | Files | Refs

commit 559dff5fc9863e675000c857f7b70129d25b7719
parent 4c67d0fa1446fef59370f92a5fada4f2f7da375e
Author: beau hilton <cbeauhilton@gmail.com>
Date:   Fri, 20 Oct 2023 10:32:08 -0500

testing custom hook

Diffstat:
M.devenv/profile | 4++--
A.pre-commit-config.yaml | 2++
Mflake.nix | 21++++++++++++++++++---
3 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/.devenv/profile b/.devenv/profile @@ -1 +1 @@ -/nix/store/4gdc4svkki811ip8qa9c5jjd5mwvkd76-devenv-profile -\ No newline at end of file +/nix/store/6is21xpd64dvz0ql8xrx9vkbdkc3d606-devenv-profile +\ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -0,0 +1 @@ +/nix/store/plgqrgap2ssswgpkiw6mrahj7msaz0z5-pre-commit-config.json +\ No newline at end of file diff --git a/flake.nix b/flake.nix @@ -20,7 +20,7 @@ ... } @ inputs: let forEachSystem = nixpkgs.lib.genAttrs (import systems); - in { + in { devenv-up = self.devShells.x86_64-linux.default.config.procfileScript; devShells = forEachSystem @@ -35,19 +35,34 @@ entr highlight pandoc + rsync soupault silver-searcher simple-http-server ]; languages.ocaml = {enable = true;}; + + # fresh build every time I enter the project, happens in the background and is super snappy enterShell = '' rm -rf ./build soupault - nohup simple-http-server --index --nocache -o -p 8999 ./build 2>&1 & ''; + scripts = { newterm.exec = "wezterm start --cwd ."; - autorebuild.exec = "nohup ag -l | entr -n -s 'soupault' &> /dev/null &"; + autorebuild.exec = "nohup ag -l | entr -n -s 'soupault' &> /dev/null &"; # autorebuild, uses caching so superer snappier + serve.exec = "nohup simple-http-server --index --nocache -o -p 8999 ./build 2>&1 &"; # the -o opens $BROWSER + }; + pre-commit.hooks = { + alejandra.enable = true; + rsync-to-server = { + enable = true; + name = "rsync-to-server"; + description = "rsyncs the completed site to my server"; + entry = '' + echo "hooooyo" + ''; + }; }; } ];