From ad69f30a5640cddb55e356369274133dabce1378 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Sat, 8 Apr 2023 13:44:45 -0700 Subject: [PATCH] remove media-session stuff --- modules/ezpw.nix | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/modules/ezpw.nix b/modules/ezpw.nix index 831fba5..ecc72bf 100644 --- a/modules/ezpw.nix +++ b/modules/ezpw.nix @@ -56,7 +56,6 @@ in { alsa.support32Bit = lib.mkDefault true; pulse.enable = lib.mkDefault true; - media-session.enable = lib.mkDefault false; wireplumber.enable = lib.mkDefault true; config = mkIf cfg.lowLatency { @@ -132,53 +131,6 @@ in { }; }; }; - - media-session.config.alsa-monitor = mkIf cfg.lowLatency { - rules = [ - { - matches = [{node.name = "alsa_output.*";}]; - actions = { - update-props = { - "audio.format" = "S32LE"; - "audio.rate" = - cfg.rate - * ( - if cfg.usbSoundcard - then 2 - else 1 - ); - "api.alsa.period-size" = cfg.periodSize; - }; - }; - } - ]; - }; - - media-session.config.bluez-monitor = { - properties = { - "bluez5.codecs" = ["sbc" "aac" "ldac" "aptx" "aptx_hd"]; - "bluez5.mdbc-support" = true; - }; - rules = [ - { - actions = { - update-props = { - "bluez5.auto-connect" = ["hsp_hs" "hfp_hf" "a2dp_sink"]; - "bluez5.hw-volume" = ["hsp_ag" "hfp_ag" "a2dp_source" "a2dp_sink"]; - "bluez5.autoswitch-profile" = true; - }; - }; - matches = [{"device.name" = "~bluez_card.*";}]; - } - { - actions = {update-props = {"node.pause-on-idle" = false;};}; - matches = [ - {"node.name" = "~bluez_input.*";} - {"node.name" = "~bluez_output.*";} - ]; - } - ]; - }; }; environment.systemPackages = with pkgs; [