mpd: set network settings as environment variables

https://mpd.readthedocs.io/en/stable/client.html#connecting-to-mpd

These environment variables are picked up by, amongst others, clients
based on libmpdclient:

- 2a42a10067/src/settings.c (L108)
- 2a42a10067/src/settings.c (L135)
This commit is contained in:
bandithedoge
2026-01-02 00:58:41 +01:00
committed by Matthieu Coudron
parent d4e4d5cfa3
commit 2f06b72606
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
{ config, ... }:
{
time = "2026-01-02T00:03:48+00:00";
condition = config.services.mpd.enable;
message = ''
`MPD_HOST` and `MPD_PORT` environment variables are now set automatically.
This can be disabled with `services.mpd.enableSessionVariables = false`.
'';
}