feat(machine): landscape layout and fullscreen mode

- Switch Electron window to landscape (1920x1080) with fullscreen fallback
- Rearrange IdleView for horizontal layout (logo+badges left, action cards right)
- Fix hostname command in provision/build scripts (use ip route instead of hostname -I)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-18 20:43:49 -05:00
commit 722635a5a6
5 changed files with 28 additions and 37 deletions

View file

@ -24,34 +24,23 @@ let
# .env template with regtest defaults pointing to the dev machine
envTemplate = pkgs.writeText "lamassu-atm-env" ''
# Lamassu ATM Live USB Configuration
# Edit this file and restart: sudo systemctl restart lamassu-atm
#
# Dev machine LAN address (adjust to your network)
# Run provision-atm.sh from your dev machine, or edit manually:
# sudo nano /var/lib/lamassu-atm/.env && sudo systemctl restart lamassu-atm
VITE_RELAY_URL=ws://192.168.1.190:7777
VITE_LIGHTNING_PUB_API_URL=http://192.168.1.190:1776
VITE_EXTENSION_API_URL=http://192.168.1.190:1777
# Lightning.Pub credentials (fill in after boot)
VITE_LIGHTNING_PUB_PUBKEY=
VITE_ATM_PRIVATE_KEY=
VITE_ADMIN_TOKEN=
VITE_APP_ID=
VITE_APP_TOKEN=
VITE_LINKING_TOKEN=
# Machine configuration
VITE_LAMASSU_MACHINE_MODEL=sintra
VITE_LAMASSU_FIAT_CODE=USD
# Hardware (uncomment and set for real hardware)
# VITE_LAMASSU_VALIDATOR_DEVICE=/dev/ttyUSB0
# VITE_LAMASSU_DISPENSER_DEVICE=/dev/ttyUSB1
# VITE_LAMASSU_CASSETTES=
# Force production mode when running via `electron /path`
ELECTRON_FORCE_PROD=1
# Display
DISPLAY=:0
'';
in
@ -159,7 +148,7 @@ in
};
};
# Install the .env template on first boot
# Install the .env on first boot
system.activationScripts.lamassu-env = ''
mkdir -p /var/lib/lamassu-atm
if [ ! -f /var/lib/lamassu-atm/.env ]; then