ncmpcpp: Allow str type values for mpdMusicDir option (#3565)

The default value of `programs.ncmpcpp.mpdMusicDir` is taken from
`services.mpd.musicDirectory` if the mpd module is enabled, which has
type `either path str`. `programs.ncmpcpp.mpdMusicDir` did not accept
`str` values, though, so an error was raised when the default value was
used and `services.mpd.musicDirectory` was set to a value of type `str`.

This commit changes the type of `programs.ncmpcpp.mpdMusicDir` to also
accept `str` to reflect the type of `services.mpd.musicDirectory`.

Fixes #3560
This commit is contained in:
Olmo Kramer 2023-01-07 11:59:51 +01:00 committed by GitHub
parent 709a87fe33
commit 2cff1c7642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 3 deletions

View file

@ -1 +1,4 @@
{ ncmpcpp-use-mpd-config = ./ncmpcpp-use-mpd-config.nix; }
{
ncmpcpp-use-mpd-config = ./ncmpcpp-use-mpd-config.nix;
ncmpcpp-issue-3560 = ./ncmpcpp-issue-3560.nix;
}