mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
26 lines
669 B
Nix
26 lines
669 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
# Boot loader
|
|
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ];
|
|
boot.kernelModules = lib.mkDefault [ "kvm-intel" ];
|
|
|
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
|
|
|
# This will save you money and possibly your life!
|
|
services.thermald.enable = lib.mkDefault true;
|
|
|
|
boot.kernelPatches = [{
|
|
name = "enable-soundwire-drivers";
|
|
patch = null;
|
|
extraConfig = ''
|
|
SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES y
|
|
SND_SOC_INTEL_SOUNDWIRE_SOF_MACH m
|
|
SND_SOC_RT1308 m
|
|
'';
|
|
}];
|
|
|
|
boot.kernelPackages =
|
|
lib.mkIf (lib.versionOlder pkgs.linux.version "5.11")
|
|
pkgs.linuxPackages_latest;
|
|
}
|