1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-21 00:59:45 +01:00
nixos-hardware/dell/xps/17-9700/common.nix

27 lines
669 B
Nix
Raw Normal View History

{ 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;
}