17 lines
No EOL
589 B
Nix
17 lines
No EOL
589 B
Nix
{ ... }: {
|
|
boot.initrd.services.udev.rules = ''
|
|
# This is used to load the correct kernel module for the Framework USB-C Ethernet Adapter
|
|
|
|
ACTION!="add", GOTO="usb_realtek_net_end"
|
|
SUBSYSTEM!="usb", GOTO="usb_realtek_net_end"
|
|
ENV{DEVTYPE}!="usb_device", GOTO="usb_realtek_net_end"
|
|
|
|
# Modify this to change the default value
|
|
ENV{REALTEK_MODE1}="1"
|
|
|
|
# Realtek
|
|
ATTR{idVendor}=="0bda", ATTR{idProduct}=="815[2,3,5,6]", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}"
|
|
|
|
LABEL="usb_realtek_net_end"
|
|
'';
|
|
} |