From cf014ef829d8e3f42fbae6133945fc77701ef50b Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Tue, 10 Jun 2025 18:34:13 +0200 Subject: [PATCH] module: add modem.enable option --- module.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module.nix b/module.nix index dfa1085..c32dd4d 100644 --- a/module.nix +++ b/module.nix @@ -48,6 +48,8 @@ in description = "Which patched kernel to use. jhovold is the latest RC or release with some x13s specific patches."; default = "jhovold"; }; + + modem.enable = lib.mkEnableOption "enable x13s modem scripts"; }; config = lib.mkIf cfg.enable { @@ -111,7 +113,7 @@ in }; # https://github.com/jhovold/linux/wiki/X13s#modem - networking.modemmanager.fccUnlockScripts = [ + networking.modemmanager.fccUnlockScripts = lib.mkIf cfg.modem.enable [ { id = "105b:e0c3"; path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/105b";