just diffing and triplet

This commit is contained in:
Callum Leslie 2026-04-22 19:34:07 +01:00
parent 7404996570
commit 85216d6290
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90
3 changed files with 31 additions and 6 deletions

View file

@ -21,3 +21,27 @@ update:
cache:
devour-flake . | cachix push callumio-public
_build host:
@nix build .#nixosConfigurations.{{host}}.config.system.build.toplevel --no-link --print-out-paths
baseline:
@just _build artemis > /tmp/artemis.before
@just _build hermes > /tmp/hermes.before
@echo "baseline saved:"
@echo " artemis → $(cat /tmp/artemis.before)"
@echo " hermes → $(cat /tmp/hermes.before)"
# baseline one host
baseline-host host:
@just _build {{host}} > /tmp/{{host}}.before
@echo "{{host}} baseline → $(cat /tmp/{{host}}.before)"
# diff one host against its saved baseline
diff-host host:
@nvd diff $(cat /tmp/{{host}}.before) $(just _build {{host}})
# diff both hosts
diff:
@just diff-host artemis
@just diff-host hermes