From 58fd046f6cf675f1bd4f9579ba5c5ad62404e3d2 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 14 May 2025 23:00:45 +0100 Subject: [PATCH] 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 --- configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configuration.nix b/configuration.nix index ecd85ce..80e912b 100644 --- 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