2024-04-15 15:34:04 -04:00
|
|
|
{ lib, pkgs, ... }: {
|
|
|
|
imports = [
|
2024-04-28 11:54:40 -04:00
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
2024-05-24 00:54:53 -04:00
|
|
|
../../kmod.nix
|
2024-04-28 11:30:41 -04:00
|
|
|
../../framework-tool.nix
|
2024-04-15 15:34:04 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
# Fix TRRS headphones missing a mic
|
|
|
|
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
|
|
|
|
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.8") ''
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Needed for desktop environments to detect/manage display brightness
|
|
|
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
# Enable keyboard customization
|
|
|
|
hardware.keyboard.qmk.enable = lib.mkDefault true;
|
2024-07-21 09:06:36 -04:00
|
|
|
|
|
|
|
# Allow `services.libinput.touchpad.disableWhileTyping` to work correctly.
|
|
|
|
# Set unconditionally because libinput can also be configured dynamically via
|
|
|
|
# gsettings.
|
|
|
|
environment.etc."libinput/local-overrides.quirks".text = ''
|
|
|
|
[Serial Keyboards]
|
|
|
|
MatchUdevType=keyboard
|
|
|
|
MatchName=Framework Laptop 16 Keyboard Module - ANSI Keyboard
|
|
|
|
AttrKeyboardIntegration=internal
|
|
|
|
'';
|
2024-04-15 15:34:04 -04:00
|
|
|
}
|