mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixos/hardware.usb-modeswitch: remove with lib;
This commit is contained in:
parent
8f0023457d
commit
1f149110c4
@ -1,15 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
hardware.usb-modeswitch = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Enable this option to support certain USB WLAN and WWAN adapters.
|
||||
@ -24,10 +21,10 @@ with lib;
|
||||
###### implementation
|
||||
|
||||
imports = [
|
||||
(mkRenamedOptionModule ["hardware" "usbWwan" ] ["hardware" "usb-modeswitch" ])
|
||||
(lib.mkRenamedOptionModule ["hardware" "usbWwan" ] ["hardware" "usb-modeswitch" ])
|
||||
];
|
||||
|
||||
config = mkIf config.hardware.usb-modeswitch.enable {
|
||||
config = lib.mkIf config.hardware.usb-modeswitch.enable {
|
||||
# Attaches device specific handlers.
|
||||
services.udev.packages = with pkgs; [ usb-modeswitch-data ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user