2024-01-01 18:39:02 +01:00
|
|
|
{ lib, pkgs, ... }: {
|
2023-11-10 21:26:56 +01:00
|
|
|
imports = [
|
2023-11-11 22:25:20 +01:00
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
2024-11-01 18:51:53 +01:00
|
|
|
../../bluetooth.nix
|
2024-04-07 21:31:18 +02:00
|
|
|
../../kmod.nix
|
2024-04-28 17:30:41 +02:00
|
|
|
../../framework-tool.nix
|
2024-11-16 14:12:12 +01:00
|
|
|
./audio.nix
|
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-12-29 16:47:19 +01:00
|
|
|
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.8") ''
|
2023-11-10 21:26:56 +01:00
|
|
|
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;
|
|
|
|
}
|