summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/mpd.nix30
1 files changed, 27 insertions, 3 deletions
diff --git a/custom/mpd.nix b/custom/mpd.nix
index 8df2a955..fceb62fe 100644
--- a/custom/mpd.nix
+++ b/custom/mpd.nix
@@ -122,9 +122,33 @@ in {
122 description = "Group account under which MPD runs."; 122 description = "Group account under which MPD runs.";
123 }; 123 };
124 124
125 listenAddresses = mkOption { 125 network = {
126 type = with types; listOf (either (submodule tcpAddress) str); 126
127 default = [{ address = "127.0.0.1"; }]; 127 listenAddress = mkOption {
128 type = types.str;
129 default = "127.0.0.1";
130 example = "any";
131 description = ''
132 The address for the daemon to listen on.
133 Use <literal>any</literal> to listen on all addresses.
134 '';
135 };
136
137 port = mkOption {
138 type = types.int;
139 default = 6600;
140 description = ''
141 This setting is the TCP port that is desired for the daemon to get assigned
142 to.
143 '';
144 };
145
146
147 listenAddresses = mkOption {
148 type = with types; listOf (either (submodule tcpAddress) str);
149 default = [{ address = cfg.network.listenAddress; port = cfg.network.port; }];
150 };
151
128 }; 152 };
129 153
130 dbFile = mkOption { 154 dbFile = mkOption {