mpd service: add types to all options

This commit is contained in:
Joachim Fasting 2016-09-09 02:45:53 +02:00
parent 77cedff4e7
commit 009c1848c2
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -33,6 +33,7 @@ in {
services.mpd = { services.mpd = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable MPD, the music player daemon. Whether to enable MPD, the music player daemon.
@ -40,6 +41,7 @@ in {
}; };
musicDirectory = mkOption { musicDirectory = mkOption {
type = types.path;
default = "${cfg.dataDir}/music"; default = "${cfg.dataDir}/music";
description = '' description = ''
The directory where mpd reads music from. The directory where mpd reads music from.
@ -47,6 +49,7 @@ in {
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str;
default = ""; default = "";
description = '' description = ''
Extra directives added to to the end of MPD's configuration file, Extra directives added to to the end of MPD's configuration file,
@ -56,6 +59,7 @@ in {
}; };
dataDir = mkOption { dataDir = mkOption {
type = types.path;
default = "/var/lib/mpd"; default = "/var/lib/mpd";
description = '' description = ''
The directory where MPD stores its state, tag cache, The directory where MPD stores its state, tag cache,
@ -64,11 +68,13 @@ in {
}; };
user = mkOption { user = mkOption {
type = types.str;
default = "mpd"; default = "mpd";
description = "User account under which MPD runs."; description = "User account under which MPD runs.";
}; };
group = mkOption { group = mkOption {
type = types.str;
default = "mpd"; default = "mpd";
description = "Group account under which MPD runs."; description = "Group account under which MPD runs.";
}; };
@ -76,6 +82,7 @@ in {
network = { network = {
listenAddress = mkOption { listenAddress = mkOption {
type = types.str;
default = "any"; default = "any";
description = '' description = ''
This setting sets the address for the daemon to listen on. Careful attention This setting sets the address for the daemon to listen on. Careful attention
@ -85,6 +92,7 @@ in {
}; };
port = mkOption { port = mkOption {
type = types.int;
default = 6600; default = 6600;
description = '' description = ''
This setting is the TCP port that is desired for the daemon to get assigned This setting is the TCP port that is desired for the daemon to get assigned