Skip to content

Commit 9ae5c2d

Browse files
authored
Merge pull request #244572 from MinerSebas/usb-modeswitch-module-rename
nixos/usb-modeswitch: Rename module from usbWwan
2 parents 68cca03 + 7c30989 commit 9ae5c2d

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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

nixos/modules/module-list.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
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

0 commit comments

Comments
 (0)