about summary refs log tree commit diff
path: root/nixos/alpha
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-27 15:59:59 +0900
committersefidel <contact@sefidel.net>2022-01-27 15:59:59 +0900
commitd08246344664a354d1beeaf450af9062a5899230 (patch)
tree863540e1513dc2b967975251725f9708265ffa32 /nixos/alpha
parent7c10bb37639226e7a22622dc40001502c09054c3 (diff)
downloadnixrc-d08246344664a354d1beeaf450af9062a5899230.tar.gz
nixrc-d08246344664a354d1beeaf450af9062a5899230.zip
nixos/alpha: hacky fix for alsa error
Diffstat (limited to 'nixos/alpha')
-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 = {