pipewire: modernize
This commit is contained in:
		
							parent
							
								
									fc6f5bcac9
								
							
						
					
					
						commit
						6f78a84615
					
				
							
								
								
									
										20
									
								
								pipewire.nix
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										20
									
								
								pipewire.nix
									
									
									
									
									
								
							@ -2,16 +2,28 @@
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  hardware.bluetooth.hsphfpd.enable = true;
 | 
			
		||||
 | 
			
		||||
  users.extraUsers.gebner.extraGroups = [ "bluetooth" ];
 | 
			
		||||
 | 
			
		||||
  security.rtkit.enable = true;
 | 
			
		||||
  services.pipewire = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    sessionManagerArguments = [ "-p" "bluez5.msbc-support=true" ];
 | 
			
		||||
    alsa.enable = true;
 | 
			
		||||
    jack.enable = true;
 | 
			
		||||
    alsa.support32Bit = true;
 | 
			
		||||
    pulse.enable = true;
 | 
			
		||||
    jack.enable = true;
 | 
			
		||||
 | 
			
		||||
    media-session.config.bluez-monitor.rules = [
 | 
			
		||||
      {
 | 
			
		||||
        # Matches all cards
 | 
			
		||||
        matches = [ { "device.name" = "~bluez_card.*"; } ];
 | 
			
		||||
        actions = {
 | 
			
		||||
          "update-props" = {
 | 
			
		||||
            "bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
 | 
			
		||||
            "bluez5.msbc-support" = true;
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user