Extract mpd module

This commit is contained in:
Leonardo Eugênio 2023-01-18 01:13:47 -03:00
parent 6fe95f6358
commit f4e00ffb2c
2 changed files with 22 additions and 19 deletions

21
user/mpd.nix Normal file
View file

@ -0,0 +1,21 @@
{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"
'';
};
services.mpdris2 = {
enable = true;
multimediaKeys = true;
notifications = true;
};
}