about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-01-13T15·14-0500
committerglittershark <grfn@gws.fyi>2021-01-13T16·53+0000
commit7850ad03219d4f144f8a8265ee89feaa9bbb2009 (patch)
tree285c21e53c62adb80d692082f5fdec11f334bc23 /users
parentf5e72972fd2fcfa58f48565936f364ebfe117f51 (diff)
feat(gs/yeren): Get internal soundcard working r/2087
Change-Id: Idafb951eb995a92e955e42bee5b563a738ce49c7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2361
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users')
-rw-r--r--users/glittershark/system/system/machines/yeren.nix12
-rw-r--r--users/glittershark/system/system/modules/sound.nix2
2 files changed, 14 insertions, 0 deletions
diff --git a/users/glittershark/system/system/machines/yeren.nix b/users/glittershark/system/system/machines/yeren.nix
index c695608977be..eec5527a9f3c 100644
--- a/users/glittershark/system/system/machines/yeren.nix
+++ b/users/glittershark/system/system/machines/yeren.nix
@@ -33,6 +33,11 @@
     kernelParams = [
       "i915.preliminary_hw_support=1"
     ];
+
+    # https://bbs.archlinux.org/viewtopic.php?pid=1933643#p1933643
+    extraModprobeConfig = ''
+      options snd-intel-dspcfg dsp_driver=1
+    '';
   };
 
   fileSystems = {
@@ -63,6 +68,11 @@
     '';
   };
 
+  hardware.firmware = with pkgs; [
+    alsa-firmware
+    sof-firmware
+  ];
+
   hardware.opengl.extraPackages = with pkgs; [
     vaapiIntel
     vaapiVdpau
@@ -111,4 +121,6 @@
     load-module module-remap-source source_name=KompleteAudio6_2 source_properties=device.description=KompleteAudio6Input2 master=alsa_input.usb-Native_Instruments_Komplete_Audio_6_458E0FFD-00.multichannel-input remix=no channels=1 master_channel_map=front-right channel_map=mono
     load-module module-remap-sink sink_name=KompleteAudio6_12 sink_properties=device.description=KompleteAudio6_12 remix=no master=alsa_output.usb-Native_Instruments_Komplete_Audio_6_458E0FFD-00.analog-surround-21 channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
   '';
+
+  services.fwupd.enable = true;
 }
diff --git a/users/glittershark/system/system/modules/sound.nix b/users/glittershark/system/system/modules/sound.nix
index 0d5ce3e318c3..15c8dd5e3f92 100644
--- a/users/glittershark/system/system/modules/sound.nix
+++ b/users/glittershark/system/system/modules/sound.nix
@@ -11,4 +11,6 @@
     pasystray
     pavucontrol
   ];
+
+  hardware.pulseaudio.package = pkgs.pulseaudioFull;
 }