about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/alpha/configuration.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 92eb25b..f245432 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -90,13 +90,24 @@
   services.pipewire = {
     enable = true;
 
-    alsa.enable = true;
-    alsa.support32Bit = true;
+    #alsa.enable = true;
+    #alsa.support32Bit = true;
     pulse.enable = true;
 
     config = import ./config/pipewire.nix;
   };
-#
+
+  environment.etc."alsa/conf.d/49-pipewire-modules.conf".text = ''
+    pcm_type.pipewire {
+      lib ${pkgs.pipewire.lib}/lib/alsa-lib/libasound_module_pcm_pipewire.so ;
+    }
+    ctl_type.pipewire {
+      lib ${pkgs.pipewire.lib}/lib/alsa-lib/libasound_module_ctl_pipewire.so ;
+    }
+  '';
+  environment.etc."alsa/conf.d/50-pipewire.conf".source = "${pkgs.pipewire}/share/alsa/alsa.conf.d/50-pipewire.conf";
+  environment.etc."alsa/conf.d/99-pipewire-default.conf".source = "${pkgs.pipewire}/share/alsa/alsa.conf.d/99-pipewire-default.conf";
+
   hardware.bluetooth.enable = true;
 
   services.greetd = {