From bd1f7c1574745caddecc08d755fed3c6f6bbc79e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 5 Mar 2026 00:02:36 -0800 Subject: better hooks --- .pre-commit-config.yaml | 2 +- flake.nix | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a23c4bb..b1255dc 120000 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1 @@ -/nix/store/0l5adw0chd57sddq3qvaqqvxd15cxn19-pre-commit-config.json \ No newline at end of file +/nix/store/dpkk5c7lx4hrkczwjpzi0qzzkr5i1j8k-pre-commit-config.json \ No newline at end of file diff --git a/flake.nix b/flake.nix index c5d66c0..56f7405 100644 --- a/flake.nix +++ b/flake.nix @@ -2,12 +2,14 @@ description = "Build my static site with my installer"; inputs = { + self.submodules = true; + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; git-hooks = { url = "github:cachix/git-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - nixmacs.url = ./nix; + nixmacs.url = "path:./nix"; publish-org-roam-ui = { url = "git://nullring.xyz/publish-org-roam-ui.git"; @@ -28,7 +30,7 @@ enable = true; name = "website-build"; description = "Ensure website can build, and tests links"; - stages = [ "post-merge" ]; + stages = [ "pre-merge-commit" ]; entry = "${pkgs.writeShellScript "website-check" '' set -e set -o pipefail -- cgit v1.3