From 6f908156afcdef9e99b90a0b7d529a7815d21d44 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 8 Jul 2024 19:28:57 +0100 Subject: [PATCH] fix dependency between modem-atz and modeswitch for values of "fix" more than slightly reminiscent of "kludge" --- modules/cdc-ncm/wwan.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = {