Unverified Commit 3e3fea86 authored by Martin Ertsås's avatar Martin Ertsås
Browse files

nixos/modemmanager: Add qmicli and mbimcli when using fccUnlockScripts

The ModemManager shipped fccUnlockScripts are using either qmicli or
mbimcli, to unlock wwan modems. These needs to be available for
ModemManager if you set the fccUnlockScripts link, so instead of having
every user than needs it pull it inn in different ways, we should just
provide the tools if we think they might be needed.

https://modemmanager.org/docs/modemmanager/fcc-unlock
parent c6b7be9a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -565,7 +565,10 @@ in
      wantedBy = [ "network-online.target" ];
    };

    systemd.services.ModemManager.aliases = [ "dbus-org.freedesktop.ModemManager1.service" ];
    systemd.services.ModemManager = {
      aliases = [ "dbus-org.freedesktop.ModemManager1.service" ];
      path = lib.optionals (cfg.fccUnlockScripts != []) [ pkgs.libqmi pkgs.libmbim ];
    };

    systemd.services.NetworkManager-dispatcher = {
      wantedBy = [ "network.target" ];