2023-11-10 22:10:31 +01:00
|
|
|
{ lib, ... }: {
|
2023-11-10 21:26:56 +01:00
|
|
|
imports = [
|
2023-11-11 22:25:20 +01:00
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
2023-11-10 21:26:56 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Fix TRRS headphones missing a mic
|
|
|
|
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
|
2023-11-10 22:10:31 +01:00
|
|
|
#
|
|
|
|
# This is temporary until a kernel patch is submitted
|
2023-11-10 21:26:56 +01:00
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
options snd-hda-intel model=dell-headset-multi
|
|
|
|
'';
|
|
|
|
|
|
|
|
# For fingerprint support
|
|
|
|
services.fprintd.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
# Custom udev rules
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
# Ethernet expansion card support
|
|
|
|
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Fix font sizes in X
|
|
|
|
# services.xserver.dpi = 200;
|
|
|
|
|
|
|
|
# Needed for desktop environments to detect/manage display brightness
|
|
|
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
|
|
|
}
|