From 3ff437eaa7d2fc8eae000b3888bdce57d341ce6c Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Sat, 22 Aug 2026 10:17:57 +0200 Subject: [PATCH] nixos/modemmanager: fix missing awk and xxd in FCC unlock script PATH The FCC unlock scripts use a few helpers not automatically included with systemd, which we need to set up the service path for. Two of the scripts that come from upstream use awk and xxd, which were missing in the list. That made the script mistakenly yield an empty response, which ultimately makes the unlock fail. As of today, this fix covers the MediaTek T700, sold e.g. with the ThinkPad X1 Yoga Gen 8 as Fibocom FM350-GL. --- nixos/modules/services/networking/modemmanager.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/networking/modemmanager.nix b/nixos/modules/services/networking/modemmanager.nix index 604340fd0748..d1fa37045b7f 100644 --- a/nixos/modules/services/networking/modemmanager.nix +++ b/nixos/modules/services/networking/modemmanager.nix @@ -64,10 +64,15 @@ in systemd.services.ModemManager = { aliases = [ "dbus-org.freedesktop.ModemManager1.service" ]; - path = lib.optionals (cfg.fccUnlockScripts != [ ]) [ - pkgs.libqmi - pkgs.libmbim - ]; + path = lib.optionals (cfg.fccUnlockScripts != [ ]) ( + with pkgs; + [ + gawk + libmbim + libqmi + xxd + ] + ); }; /*