fix(nix): ATM_DB_PATH was reverted to /var/lib/lamassu-atm by rebase

Main's commit e5d7a86 ("chore: set ATM_DB_PATH env var for atm-tui")
added two ATM_DB_PATH lines pointing at /var/lib/lamassu-atm/state.db
AFTER dev had forked. Dev's path-rename commit (10d2869) couldn't
touch those lines because they didn't exist on dev's base; the
rebase brought them in unchanged, undoing the lamassu-atm → bitspire
data-dir migration for the ATM_DB_PATH consumers.

Re-point both occurrences at /var/lib/bitspire/state.db so atm-tui
and other ATM_DB_PATH consumers reach the actual on-disk location.
This commit is contained in:
Padreug 2026-06-01 19:35:01 +02:00
commit a8e984e12b

View file

@ -92,7 +92,7 @@
exec ${pkgs-unstable.nodejs}/bin/node ${atm-app}/dist-electron/fund-atm.bundle.cjs "$@"
'')
];
environment.variables.ATM_DB_PATH = "/var/lib/lamassu-atm/state.db";
environment.variables.ATM_DB_PATH = "/var/lib/bitspire/state.db";
}
];
};
@ -131,7 +131,7 @@
exec ${pkgs-unstable.nodejs}/bin/node ${atm-app}/dist-electron/fund-atm.bundle.cjs "$@"
'')
];
environment.variables.ATM_DB_PATH = "/var/lib/lamassu-atm/state.db";
environment.variables.ATM_DB_PATH = "/var/lib/bitspire/state.db";
# Electron sandbox needs unprivileged user namespaces
boot.kernel.sysctl."kernel.unprivileged_userns_clone" = 1;