module: add modem.enable option
This commit is contained in:
parent
6969524d6f
commit
cf014ef829
1 changed files with 3 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue