feat: improve scripts and write tests

This commit is contained in:
alexm committed 2026-10-11 07:22:13 -04:00
1 parent bc3091647e
commit cf4bd07a8e
32 files changed
+3817 -723

No files matched your search

+7 -3
View File
@@ -62,13 +62,17 @@ make-usb *args:
# Scaffold hosts/<name>/ and add a flake.nix entry.
# Example: just register-host blackbear
register-host name:
@./scripts/register-host.py --repo-root . "{{name}}"
@./scripts/register-host.py --repo-root . -- "$1"
# Capture the current machine's hardware into hosts/<name>/hardware.nix.
# Run this on the new machine.
# Example: just capture-hardware blackbear
capture-hardware name:
@./scripts/capture-hardware.sh "{{name}}"
@./scripts/capture-hardware.sh -- "$1"
# Run the tests for scripts/.
test:
@./scripts/tests/run.sh
# Show which hosts are currently registered in flake.nix.
hosts:
@@ -78,4 +82,4 @@ hosts:
# Override store: just docker-creds secretservice
# Unprotected key: just docker-creds pass --no-passphrase
docker-creds store='pass' flag='':
@./scripts/docker-creds.sh "{{store}}" "{{flag}}"
@./scripts/docker-creds.sh "$1" "$2"