mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 00:38:16 +03:00
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
This commit is contained in:
parent
c6b7be9ad7
commit
3e3fea8653
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user