mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-29 13:09:45 +01:00
27 lines
669 B
Nix
27 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;
|
||
|
}
|