nixos-config/user/mpd.nix

36 lines
688 B
Nix
Raw Permalink Normal View History

{
lib,
pkgs,
config,
...
}:
{
2024-06-05 01:18:48 -03:00
config = lib.mkIf (config.my.desktop != "gnome") {
2023-11-07 20:46:08 -03:00
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
];
2023-01-18 01:13:47 -03:00
};
}