mpdris2: add password option

This commit is contained in:
Erwin Boskma 2022-04-05 13:12:24 +02:00 committed by Robert Helgesson
parent e66f0ff69a
commit d73ba6a534
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -21,6 +21,8 @@ let
host = cfg.mpd.host;
port = cfg.mpd.port;
music_dir = cfg.mpd.musicDirectory;
} // optionalAttrs (cfg.mpd.password != null) {
password = cfg.mpd.password;
};
Bling = {
@ -70,6 +72,14 @@ in {
If set, mpDris2 will use this directory to access music artwork.
'';
};
password = mkOption {
type = types.nullOr types.str;
default = null;
description = ''
The password to connect to MPD.
'';
};
};
};