From d08246344664a354d1beeaf450af9062a5899230 Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 27 Jan 2022 15:59:59 +0900 Subject: nixos/alpha: hacky fix for alsa error --- nixos/alpha/configuration.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'nixos/alpha/configuration.nix') 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 = { -- cgit 1.4.1