Last active
October 30, 2024 11:12
-
-
Save stigtsp/68e875d5be28a8d75390dd804480e390 to your computer and use it in GitHub Desktop.
EM061K-GL on NixOS with Modem Manager on Thinkpad X13 gen5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lsusb | grep Quectel | |
# Bus 001 Device 004: ID 2c7c:6008 Quectel Wireless Solutions Co., Ltd. EM061K-GL | |
networking = { | |
hostName = "something"; | |
networkmanager = { | |
enable = true; | |
fccUnlockScripts = [ | |
{ id = "2c7c:6008"; | |
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/2c7c"; } | |
]; | |
}; | |
}; | |
services.udev.extraRules = '' | |
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="6008", ENV{ID_MM_QUECTEL_FIREHOSE}="1" | |
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="6008", ENV{ID_MM_QUECTEL_SAHARA}="1" | |
''; | |
# I also have this in my .config/i3/config, don't think you should need it, but I have it, dunno -> https://github.com/NixOS/nixpkgs/issues/11197 | |
# exec_always --no-startup-id "dbus-send --system --dest=org.freedesktop.ModemManager1 --print-reply /org/freedesktop/ModemManager1 org.freedesktop.DBus.Introspectable.Introspect > /dev/null" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment