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