mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
mpdris2: add password option
This commit is contained in:
committed by
Robert Helgesson
parent
e66f0ff69a
commit
d73ba6a534
@@ -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.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user