diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-21 20:56:21 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-21 20:56:21 +0200 |
| commit | bb196fb98eff82ddf81c0d8f7c2beba508bd524e (patch) | |
| tree | abd09748815354e579009321dbac0acecad1cd5e /custom | |
| parent | 7c9acf57633e62420f4effbeb3b99e72d6616543 (diff) | |
| download | nixos-bb196fb98eff82ddf81c0d8f7c2beba508bd524e.tar nixos-bb196fb98eff82ddf81c0d8f7c2beba508bd524e.tar.gz nixos-bb196fb98eff82ddf81c0d8f7c2beba508bd524e.tar.bz2 nixos-bb196fb98eff82ddf81c0d8f7c2beba508bd524e.tar.xz nixos-bb196fb98eff82ddf81c0d8f7c2beba508bd524e.zip | |
…
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/mpd.nix | 30 |
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 { |
