22 lines
482 B
Nix
22 lines
482 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.mpdris2 = {
|
||
|
enable = true;
|
||
|
notifications = true;
|
||
|
multimediaKeys = true;
|
||
|
};
|
||
|
|
||
|
services.mpd.musicDirectory = "/home/hm-user/music";
|
||
|
|
||
|
test.stubs.mpdris2 = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile=home-files/.config/systemd/user/mpdris2.service
|
||
|
assertFileContent "$serviceFile" ${./basic-configuration.service}
|
||
|
|
||
|
configFile=home-files/.config/mpDris2/mpDris2.conf
|
||
|
assertFileContent "$configFile" ${./basic-configuration.config}
|
||
|
'';
|
||
|
}
|