mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
Reorganize current framework modules into 13-inch directory
This commit is contained in:
32
framework/13-inch/default.nix
Normal file
32
framework/13-inch/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ lib, pkgs, ... }: {
|
||||
imports = [
|
||||
../common/pc/laptop
|
||||
../common/pc/laptop/ssd
|
||||
];
|
||||
|
||||
# Fix TRRS headphones missing a mic
|
||||
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
|
||||
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;
|
||||
|
||||
# This adds a patched ectool, to interact with the Embedded Controller
|
||||
# Can be used to interact with leds from userspace, etc.
|
||||
# Not part of a nixos release yet, so package only gets added if it exists.
|
||||
environment.systemPackages = lib.optional (pkgs ? "fw-ectool") pkgs.fw-ectool;
|
||||
}
|
||||
Reference in New Issue
Block a user