mpd: don't enable mpd for gnome

This commit is contained in:
Leonardo Eugênio 2023-11-07 20:46:08 -03:00
parent 08c09a7fce
commit a18f2791c2

View file

@ -1,27 +1,29 @@
{ pkgs, config, ... }: {
services.mpd = {
enable = true;
musicDirectory = config.home.homeDirectory + "/Música";
extraConfig = ''
restore_paused "yes"
auto_update "yes"
audio_output {
type "pulse"
name "My Pulse Output"
mixer_type "hardware"
}
filesystem_charset "UTF-8"
'';
{ lib, pkgs, config, ... }: {
config = lib.mkIf (pkgs.uservars.desktop != "gnome") {
services.mpd = {
enable = true;
musicDirectory = config.home.homeDirectory + "/Música";
extraConfig = ''
restore_paused "yes"
auto_update "yes"
audio_output {
type "pulse"
name "My Pulse Output"
mixer_type "hardware"
}
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
];
}