client mpd + rpc install
This commit is contained in:
		
							parent
							
								
									516dd76905
								
							
						
					
					
						commit
						bb555f56cb
					
				
					 2 changed files with 31 additions and 0 deletions
				
			
		|  | @ -3,5 +3,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./discord | ||||
|     ./mpd.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										30
									
								
								home-manager/sajenim/features/desktop/common/mpd.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								home-manager/sajenim/features/desktop/common/mpd.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| { pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.mpd = { | ||||
|     enable = true; | ||||
|     musicDirectory = "nfs://192.168.1.102/srv/multimedia/library/music"; | ||||
|     dbFile = null; | ||||
|     extraConfig = '' | ||||
|       database { | ||||
|         plugin "proxy" | ||||
|         host "192.168.1.102" | ||||
|         port "6600" | ||||
|       } | ||||
| 
 | ||||
|       audio_output { | ||||
|         type "pulse" | ||||
|         name "PulseAudio" | ||||
|         server "127.0.0.1" # MPD must connect to the local sound server | ||||
|       } | ||||
|     ''; | ||||
|   }; | ||||
| 
 | ||||
|   services.mpd-discord-rpc = { | ||||
|     enable = true; | ||||
|     package = pkgs.unstable.mpd-discord-rpc; | ||||
|     settings = { | ||||
|       hosts = [ "192:6600" ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue