From 1f70f75ca7ac1057f27341b7051885fb1f47e7bb Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 4 Aug 2024 10:58:07 +0200 Subject: [PATCH] fix: Fix audio for xps 9315 --- configuration.nix | 5 +++-- flake.nix | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index a74aef9..bb2b34c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -35,14 +35,13 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; - jack.enable = true; }; }; users = { users.pim = { isNormalUser = true; - extraGroups = [ "wheel" "docker" "input" "wireshark" "dialout" ]; + extraGroups = [ "wheel" "docker" "input" "wireshark" "dialout" "audio" ]; }; }; @@ -78,6 +77,7 @@ yq ncdu lshw + pciutils ]) ++ (with pkgs.gnomeExtensions; [ pop-shell window-is-ready-remover @@ -225,6 +225,7 @@ hardware = { cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; pulseaudio.enable = false; + enableRedistributableFirmware = true; }; stylix = { diff --git a/flake.nix b/flake.nix index 6f595ec..3eb6fe4 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,7 @@ swapDevices = [{ device = "/dev/disk/by-uuid/6028bf52-404d-4143-9cb0-9b06cd60a373"; }]; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "rtsx_pci_sdmmc" ]; + hardware.firmware = [ pkgs.sof-firmware ]; }; });