mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/mpd: rename 'host' to 'listenAddress'
More descriptive option name.
This commit is contained in:
parent
873a9202f6
commit
79367816a9
2 changed files with 3 additions and 2 deletions
|
@ -14,6 +14,7 @@ with lib;
|
||||||
(mkRenamedOptionModule [ "networking" "enableWLAN" ] [ "networking" "wireless" "enable" ])
|
(mkRenamedOptionModule [ "networking" "enableWLAN" ] [ "networking" "wireless" "enable" ])
|
||||||
(mkRenamedOptionModule [ "networking" "enableRT73Firmware" ] [ "networking" "enableRalinkFirmware" ])
|
(mkRenamedOptionModule [ "networking" "enableRT73Firmware" ] [ "networking" "enableRalinkFirmware" ])
|
||||||
|
|
||||||
|
(mkRenamedOptionModule [ "services" "mpd" "network" "host" ] [ "services" "mpd" "network" "listenAddress" ])
|
||||||
(mkRenamedOptionModule [ "services" "neo4j" "host" ] [ "services" "neo4j" "listenAddress" ])
|
(mkRenamedOptionModule [ "services" "neo4j" "host" ] [ "services" "neo4j" "listenAddress" ])
|
||||||
|
|
||||||
# Old Grub-related options.
|
# Old Grub-related options.
|
||||||
|
|
|
@ -18,7 +18,7 @@ let
|
||||||
user "${cfg.user}"
|
user "${cfg.user}"
|
||||||
group "${cfg.group}"
|
group "${cfg.group}"
|
||||||
|
|
||||||
${optionalString (cfg.network.host != "any") ''bind_to_address "${cfg.network.host}"''}
|
${optionalString (cfg.network.listenAddress != "any") ''bind_to_address "${cfg.network.listenAddress}"''}
|
||||||
${optionalString (cfg.network.port != 6600) ''port "${toString cfg.network.port}"''}
|
${optionalString (cfg.network.port != 6600) ''port "${toString cfg.network.port}"''}
|
||||||
|
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
|
@ -75,7 +75,7 @@ in {
|
||||||
|
|
||||||
network = {
|
network = {
|
||||||
|
|
||||||
host = mkOption {
|
listenAddress = mkOption {
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue