pipewire: fix pipewire failing to start when offline
This commit is contained in:
		
							parent
							
								
									a9fba7556e
								
							
						
					
					
						commit
						700148e1ee
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,7 @@
 | 
			
		|||
{ config, pkgs, lib, ... }: {
 | 
			
		||||
  # RNNoise is a noise supperssion neural network
 | 
			
		||||
  # Here we use it as a plugin for pipewire to create a virtual microphone
 | 
			
		||||
  config = {
 | 
			
		||||
    home.file = {
 | 
			
		||||
      ".config/pipewire/pipewire.conf.d/99-rtp-sink.conf".text = ''
 | 
			
		||||
    xdg.configFile = {
 | 
			
		||||
      "pipewire/pipewire.conf.d/99-rtp-sink.conf".text = ''
 | 
			
		||||
         context.modules = [
 | 
			
		||||
         {   name = libpipewire-module-rtp-sink
 | 
			
		||||
             args = {
 | 
			
		||||
| 
						 | 
				
			
			@ -30,9 +28,14 @@
 | 
			
		|||
                     node.name = "rtp-sink"
 | 
			
		||||
                 }
 | 
			
		||||
             }
 | 
			
		||||
             flags = [ nofail ]
 | 
			
		||||
        }
 | 
			
		||||
        ]
 | 
			
		||||
      '';
 | 
			
		||||
      "systemd/user/pipewire.service.d/override.conf".text = ''
 | 
			
		||||
        [Unit]
 | 
			
		||||
        ExecStartPre=/usr/bin/env sleep 10s
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue