mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Expose cover matching and notification settings without duplicating the upstream schema. Preserve legacy options and MPD integration through per-key migration helpers and retain path-valued music directories.
24 lines
881 B
Nix
24 lines
881 B
Nix
{ lib, options, ... }:
|
|
{
|
|
services.mpdris2 = {
|
|
enable = true;
|
|
notifications = true;
|
|
multimediaKeys = true;
|
|
};
|
|
|
|
services.mpd.musicDirectory = "/home/hm-user/music";
|
|
|
|
test.asserts.warnings.expected = [
|
|
"The option `services.mpdris2.multimediaKeys' defined in ${lib.showFiles options.services.mpdris2.multimediaKeys.files} has been renamed to `services.mpdris2.settings.Bling.mmkeys'."
|
|
"The option `services.mpdris2.notifications' defined in ${lib.showFiles options.services.mpdris2.notifications.files} has been renamed to `services.mpdris2.settings.Bling.notify'."
|
|
];
|
|
|
|
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}
|
|
'';
|
|
}
|