mpd: don't enable mpd for gnome
This commit is contained in:
		
							parent
							
								
									08c09a7fce
								
							
						
					
					
						commit
						a18f2791c2
					
				
					 1 changed files with 27 additions and 25 deletions
				
			
		
							
								
								
									
										52
									
								
								user/mpd.nix
									
										
									
									
									
								
							
							
						
						
									
										52
									
								
								user/mpd.nix
									
										
									
									
									
								
							| 
						 | 
					@ -1,27 +1,29 @@
 | 
				
			||||||
{ pkgs, config, ... }: {
 | 
					{ lib, pkgs, config, ... }: {
 | 
				
			||||||
  services.mpd = {
 | 
					  config = lib.mkIf (pkgs.uservars.desktop != "gnome") {
 | 
				
			||||||
    enable = true;
 | 
					    services.mpd = {
 | 
				
			||||||
    musicDirectory = config.home.homeDirectory + "/Música";
 | 
					      enable = true;
 | 
				
			||||||
    extraConfig = ''
 | 
					      musicDirectory = config.home.homeDirectory + "/Música";
 | 
				
			||||||
      restore_paused "yes"
 | 
					      extraConfig = ''
 | 
				
			||||||
      auto_update "yes"
 | 
					        restore_paused "yes"
 | 
				
			||||||
      audio_output {
 | 
					        auto_update "yes"
 | 
				
			||||||
          type    "pulse"
 | 
					        audio_output {
 | 
				
			||||||
          name    "My Pulse Output"
 | 
					            type    "pulse"
 | 
				
			||||||
          mixer_type  "hardware"
 | 
					            name    "My Pulse Output"
 | 
				
			||||||
      }
 | 
					            mixer_type  "hardware"
 | 
				
			||||||
      filesystem_charset    "UTF-8"
 | 
					        }
 | 
				
			||||||
    '';
 | 
					        filesystem_charset    "UTF-8"
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    services.mpdris2 = {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      multimediaKeys = true;
 | 
				
			||||||
 | 
					      notifications = true;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    home.packages = with pkgs; [
 | 
				
			||||||
 | 
					      musmenu
 | 
				
			||||||
 | 
					      python3Packages.deemix
 | 
				
			||||||
 | 
					      dzadd
 | 
				
			||||||
 | 
					      mpdDup
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  services.mpdris2 = {
 | 
					 | 
				
			||||||
    enable = true;
 | 
					 | 
				
			||||||
    multimediaKeys = true;
 | 
					 | 
				
			||||||
    notifications = true;
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
  home.packages = with pkgs; [
 | 
					 | 
				
			||||||
    musmenu
 | 
					 | 
				
			||||||
    python3Packages.deemix
 | 
					 | 
				
			||||||
    dzadd
 | 
					 | 
				
			||||||
    mpdDup
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue