1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-15 15:39:41 +01:00
nixos-hardware/framework/13-inch/common/default.nix
Adam Dinwoodie e4ad9ce38f Framework: add workaround for Bluetooth device issues
Framework have published a workaround for a bug that affects the
MediaTek Bluetooth and Wi-Fi cards used in their laptops on kernel
version 6.11.  Their workaround assumes a writable /etc/systemd
directory, so reimplement the workaround for NixOS.

For the Framework version of the workaround, see:
eab0148ae8/hibernation/kernel-6-11-workarounds
2024-11-02 03:52:24 +00:00

30 lines
905 B
Nix

{ lib, pkgs, ... }: {
imports = [
../../../common/pc/laptop
../../../common/pc/laptop/ssd
../../bluetooth.nix
../../kmod.nix
../../framework-tool.nix
];
# 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"
'';
# 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;
}