1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 01:48:31 +02:00

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.
'';
};
};
};