diff --git a/modules/cdc-ncm/wwan.nix b/modules/cdc-ncm/wwan.nix index d5a6ea6..9a69d4d 100644 --- a/modules/cdc-ncm/wwan.nix +++ b/modules/cdc-ncm/wwan.nix @@ -41,7 +41,10 @@ let }; atz = oneshot rec { name = "modem-atz"; - dependencies = [ modeswitch ]; + # atz does not depend on modeswitch because modeswitch service + # is only running when the stick is in the wrong mode + dependencies = [ modeswitch.controller ]; + buildInputs = [ modeswitch ]; controller = (svc.uevent-rule.build { serviceName = name; terms = {