mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	in https://github.com/NixOS/nixos-hardware/pull/903 , the framework-laptop-kmod was added, and automatically setup for 13" models. The 16" model will also be able to take advantage of the kmod, once the 6.10 kernel patches are in place. Kernel Patchset: https://lore.kernel.org/chrome-platform/20231005160701.19987-1-dustin@howett.net/
		
			
				
	
	
		
			30 lines
		
	
	
		
			912 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			912 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, pkgs, ... }: {
 | 
						|
  imports = [
 | 
						|
    ../../../common/pc/laptop
 | 
						|
    ../../../common/pc/laptop/ssd
 | 
						|
    ../../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"
 | 
						|
  '';
 | 
						|
 | 
						|
  # 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;
 | 
						|
}
 |