From d73ba6a534a3619b64391e69e2cbcb1d9196ff78 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 5 Apr 2022 13:12:24 +0200 Subject: [PATCH] mpdris2: add password option --- modules/services/mpdris2.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/services/mpdris2.nix b/modules/services/mpdris2.nix index bf9b783b3..482106712 100644 --- a/modules/services/mpdris2.nix +++ b/modules/services/mpdris2.nix @@ -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. + ''; + }; }; };