fix(machine): seed cassettes on first boot + add atm-transactions script

Cassette inventory was never initialized in SQLite, so
recordTransaction's UPDATE decrements were no-ops against an empty
table. Now the Electron main process seeds cassettes from
VITE_LAMASSU_CASSETTES or the model preset on first boot.

Also adds an atm-transactions CLI script (with --summary, --inventory,
--type, --today, --last, --since filters) and sqlite to the NixOS
system packages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-28 11:55:00 -05:00
commit e63f8ab9f6
3 changed files with 189 additions and 0 deletions

View file

@ -109,6 +109,10 @@
# Camera support
v4l-utils
fswebcam
# ATM operations
sqlite
(writeShellScriptBin "atm-transactions" (builtins.readFile ./atm-transactions.sh))
];
# Enable SSH for remote administration