1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-18 08:59:41 +01:00
nixos-hardware/dell/xps/17-9700/common.nix
workflow 638263b724 Add Dell XPS 17 9700
Co-authored-by: Ivan Malison <IvanMalison@gmail.com>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-04-01 10:10:15 +01:00

27 lines
700 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
'';
ignoreConfigErrors = true;
}];
boot.kernelPackages =
lib.mkIf (lib.versionOlder pkgs.linux.version "5.11")
pkgs.linuxPackages_latest;
}