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
This commit is contained in:
Daniel Barlow 2025-05-14 23:00:45 +01:00
parent 3aa64e8fac
commit 58fd046f6c

View File

@ -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