parent
cad335eb01
commit
0789a2a4d6
@ -0,0 +1,26 @@ |
||||
{ 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 ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue