I love protomaps, I have added it to my own hobby project to have a self-hosted fallback for regions (or times) where there are no SwissTopo maps available.
The app will periodically download the configured map regions and store the pmap files [1]. The Go backend then directly serves them to the frontend [2].
However, reading through the docs, the author clearly knows about Nix/Nixpks and has factored some of its properties into the design: https://docs.yoebuild.org/nix.html
Road bike tail lights have had IMU controlled brake light functionality for years. Even fairly cheap ones from Aliexpress. Example: https://youtu.be/iH-dYDkd_U0?t=123
I regularly ride both bikes and motorbikes and this never has been a problem, even though the lever that is the rear brake on the bike is the front brake on the motorcycle.
To get your _current_ data, it is possible to pull the current .FIT files from your device (watch, bike computer, ..) when it is plugged to your computer and mounted as file system.