1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6 ###### interface
7
8 options = {
9
10 hardware.usbWwan = {
11 enable = mkOption {
12 type = types.bool;
13 default = false;
14 description = ''
15 Enable this option to support USB WWAN adapters.
16 '';
17 };
18 };
19 };
20
21 ###### implementation
22
23 config = mkIf config.hardware.usbWwan.enable {
24 services.udev.packages = with pkgs; [ usb-modeswitch-data ];
25 };
26}