1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-01 00:29:40 +01:00
nixos-hardware/dell/xps/17-9700/common.nix
2022-04-15 10:39:16 +01:00

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