commit 58fd046f6cf675f1bd4f9579ba5c5ad62404e3d2 parent 3aa64e8fac8cc7e7bc0f3d5b33670b1274ec2a16 Author: Daniel Barlow <dan@telent.net> Date: Wed, 14 May 2025 23:00:45 +0100 connect qmi-nmea to /var/run/gnss-share.sock :-) this works with satellite :-( it doesn't start on boot it needs to be run after the /dev/wwan0qmi0 is created Diffstat:
| M | configuration.nix | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/configuration.nix b/configuration.nix @@ -129,6 +129,17 @@ in { }; systemd.services = { + nmea-share = { + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + # https://github.com/andersson/rmtfs/blob/7a5ae7e0a57be3e09e0256b51b9075ee6b860322/rmtfs.c#L507-L541 + ExecStart = '' + ${pkgs.socat}/bin/socat exec:"${pkgs.qmi-nmea}/bin/qmi-nmea /dev/wwan0qmi0",pty unix-listen:/var/run/gnss-share.sock,fork,umask=0000,mode=0766 + ''; + Restart = "always"; + RestartSec = "2"; + }; + }; rmtfs = # the four files in here are partition images: # partlabel => filename