File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,20 +7,27 @@ with lib;
77
88 options = {
99
10- hardware . usbWwan = {
10+ hardware . usb-modeswitch = {
1111 enable = mkOption {
1212 type = types . bool ;
1313 default = false ;
1414 description = lib . mdDoc ''
15- Enable this option to support USB WWAN adapters.
15+ Enable this option to support certain USB WLAN and WWAN adapters.
16+
17+ These network adapters initial present themselves as Flash Drives containing their drivers.
18+ This option enables automatic switching to the networking mode.
1619 '' ;
1720 } ;
1821 } ;
1922 } ;
2023
2124 ###### implementation
2225
23- config = mkIf config . hardware . usbWwan . enable {
26+ imports = [
27+ ( mkRenamedOptionModule [ "hardware" "usbWwan" ] [ "hardware" "usb-modeswitch" ] )
28+ ] ;
29+
30+ config = mkIf config . hardware . usb-modeswitch . enable {
2431 # Attaches device specific handlers.
2532 services . udev . packages = with pkgs ; [ usb-modeswitch-data ] ;
2633
Original file line number Diff line number Diff line change 9393 ./hardware/tuxedo-keyboard.nix
9494 ./hardware/ubertooth.nix
9595 ./hardware/uinput.nix
96+ ./hardware/usb-modeswitch.nix
9697 ./hardware/usb-storage.nix
97- ./hardware/usb-wwan.nix
9898 ./hardware/video/amdgpu-pro.nix
9999 ./hardware/video/bumblebee.nix
100100 ./hardware/video/capture/mwprocapture.nix
You can’t perform that action at this time.
0 commit comments