Extract mpd module
This commit is contained in:
parent
6fe95f6358
commit
f4e00ffb2c
2 changed files with 22 additions and 19 deletions
21
user/mpd.nix
Normal file
21
user/mpd.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue