aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/vet/default.nix
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2026-10-27 11:50:21 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2026-10-27 11:50:21 +0100
commit305a0e61f839de12f5aebaee6e1469e138c86fd7 (patch)
treec3c7ff3dd1180a785e02a848ad3e4655d68cea20 /pkgs/vet/default.nix
parent163c2dee18ab2b197fe1fcf00cf32214b804fda6 (diff)
downloaddotfiles-305a0e61f839de12f5aebaee6e1469e138c86fd7.tar.gz
dotfiles-305a0e61f839de12f5aebaee6e1469e138c86fd7.zip
feat: gate updates behind vet supply-chain checksHEADmain
update now holds inputs and skills back by a cooldown, has Claude review third-party diffs, and reports CVE changes before switching. Homebrew taps are pinned through nix-homebrew, and npm/pnpm get install policies.
Diffstat (limited to 'pkgs/vet/default.nix')
-rw-r--r--pkgs/vet/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/vet/default.nix b/pkgs/vet/default.nix
new file mode 100644
index 0000000..e9c1b09
--- /dev/null
+++ b/pkgs/vet/default.nix
@@ -0,0 +1,30 @@
+# Supply-chain gate for `update` in modules/home/zsh.nix. nix, claude, skills
+# and gh come from the user's PATH: they are configured elsewhere, and nix
+# must match the installed daemon.
+{
+ writeShellApplication,
+ coreutils,
+ curl,
+ gawk,
+ git,
+ gnugrep,
+ gnused,
+ jq,
+ vulnix,
+}:
+
+writeShellApplication {
+ name = "vet";
+ runtimeInputs = [
+ coreutils
+ curl
+ gawk
+ git
+ gnugrep
+ gnused
+ jq
+ vulnix
+ ];
+ runtimeEnv.VET_PROMPT = ./prompt.md;
+ text = builtins.readFile ./vet.sh;
+}