diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-04-11 18:08:51 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-04-11 18:18:53 +0200 |
commit | 3ab45f4b369c9c741b55ddedeaac4c797dc61c04 (patch) | |
tree | 3c5e330622e42066e50ab20a6c58b9251addf863 /nixos/modules/services/logging | |
parent | 54fff9ec1a9e7425926eadffada0268351536926 (diff) | |
download | nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.gz nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.bz2 nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.lz nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.xz nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.zst nixlib-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.zip |
treewide: use boolToString function
Diffstat (limited to 'nixos/modules/services/logging')
-rw-r--r-- | nixos/modules/services/logging/graylog.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/services/logging/graylog.nix b/nixos/modules/services/logging/graylog.nix index 95283096662e..9f0fb11f0252 100644 --- a/nixos/modules/services/logging/graylog.nix +++ b/nixos/modules/services/logging/graylog.nix @@ -4,16 +4,15 @@ with lib; let cfg = config.services.graylog; - configBool = b: if b then "true" else "false"; confFile = pkgs.writeText "graylog.conf" '' - is_master = ${configBool cfg.isMaster} + is_master = ${boolToString cfg.isMaster} node_id_file = ${cfg.nodeIdFile} password_secret = ${cfg.passwordSecret} root_username = ${cfg.rootUsername} root_password_sha2 = ${cfg.rootPasswordSha2} elasticsearch_cluster_name = ${cfg.elasticsearchClusterName} - elasticsearch_discovery_zen_ping_multicast_enabled = ${configBool cfg.elasticsearchDiscoveryZenPingMulticastEnabled} + elasticsearch_discovery_zen_ping_multicast_enabled = ${boolToString cfg.elasticsearchDiscoveryZenPingMulticastEnabled} elasticsearch_discovery_zen_ping_unicast_hosts = ${cfg.elasticsearchDiscoveryZenPingUnicastHosts} message_journal_dir = ${cfg.messageJournalDir} mongodb_uri = ${cfg.mongodbUri} |