From 40ffbea4c9a70f657eda86beaf255bf9c0a43539 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 13 Aug 2021 22:39:34 -0600 Subject: [PATCH] [NixOS] Finally fix audio on adele --- nixos/machines/adele.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nixos/machines/adele.nix b/nixos/machines/adele.nix index fb614389..edf3912a 100644 --- a/nixos/machines/adele.nix +++ b/nixos/machines/adele.nix @@ -11,12 +11,23 @@ hardware.enableRedistributableFirmware = 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.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.kernelPackages = pkgs.linuxPackages_latest; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = with config.boot.kernelPackages; [ soundwire-dkms ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;