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:
parent
f6a1c2f9f6
commit
e63f8ab9f6
3 changed files with 189 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue