mirror of
https://github.com/callumio/nixfiles.git
synced 2026-08-06 20:49:17 +01:00
just diffing and triplet
This commit is contained in:
parent
7404996570
commit
85216d6290
3 changed files with 31 additions and 6 deletions
24
justfile
24
justfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue