Merge pull request #244572 from MinerSebas/usb-modeswitch-module-rename

nixos/usb-modeswitch: Rename module from usbWwan

authored by Nick Cao and committed by GitHub 9ae5c2de 68cca030

+11 -4
+10 -3
nixos/modules/hardware/usb-wwan.nix nixos/modules/hardware/usb-modeswitch.nix
··· 7 8 options = { 9 10 - hardware.usbWwan = { 11 enable = mkOption { 12 type = types.bool; 13 default = false; 14 description = lib.mdDoc '' 15 - Enable this option to support USB WWAN adapters. 16 ''; 17 }; 18 }; ··· 20 21 ###### implementation 22 23 - config = mkIf config.hardware.usbWwan.enable { 24 # Attaches device specific handlers. 25 services.udev.packages = with pkgs; [ usb-modeswitch-data ]; 26
··· 7 8 options = { 9 10 + hardware.usb-modeswitch = { 11 enable = mkOption { 12 type = types.bool; 13 default = false; 14 description = lib.mdDoc '' 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. 19 ''; 20 }; 21 }; ··· 23 24 ###### implementation 25 26 + imports = [ 27 + (mkRenamedOptionModule ["hardware" "usbWwan" ] ["hardware" "usb-modeswitch" ]) 28 + ]; 29 + 30 + config = mkIf config.hardware.usb-modeswitch.enable { 31 # Attaches device specific handlers. 32 services.udev.packages = with pkgs; [ usb-modeswitch-data ]; 33
+1 -1
nixos/modules/module-list.nix
··· 93 ./hardware/tuxedo-keyboard.nix 94 ./hardware/ubertooth.nix 95 ./hardware/uinput.nix 96 ./hardware/usb-storage.nix 97 - ./hardware/usb-wwan.nix 98 ./hardware/video/amdgpu-pro.nix 99 ./hardware/video/bumblebee.nix 100 ./hardware/video/capture/mwprocapture.nix
··· 93 ./hardware/tuxedo-keyboard.nix 94 ./hardware/ubertooth.nix 95 ./hardware/uinput.nix 96 + ./hardware/usb-modeswitch.nix 97 ./hardware/usb-storage.nix 98 ./hardware/video/amdgpu-pro.nix 99 ./hardware/video/bumblebee.nix 100 ./hardware/video/capture/mwprocapture.nix