module: add modem.enable option

This commit is contained in:
steveej 2025-06-10 18:34:13 +02:00
parent 6969524d6f
commit cf014ef829

View file

@ -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";