summary refs log blame commit diff
path: root/nixos/modules/hardware/usb-wwan.nix
blob: 2d20421586a7929238064d43f8887aad1ef3913f (plain) (tree)

























                                                                
{ config, lib, pkgs, ... }:

with lib;

{
  ###### interface

  options = {

    hardware.usbWwan = {
      enable = mkOption {
        type = types.bool;
        default = false;
        description = ''
          Enable this option to support USB WWAN adapters.
        '';
      };
    };
  };

  ###### implementation

  config = mkIf config.hardware.usbWwan.enable {
    services.udev.packages = with pkgs; [ usb-modeswitch-data ];
  };
}