diff options
author | Rickard Nilsson <rickynils@gmail.com> | 2015-09-30 18:19:48 +0200 |
---|---|---|
committer | Rickard Nilsson <rickynils@gmail.com> | 2015-09-30 18:31:27 +0200 |
commit | c0a83cbc4977c725ce61e8a8172b66fe4e2e8396 (patch) | |
tree | 90a7db5e8a494afe1d4dd182284f757aa564074d /nixos | |
parent | c6d77eb0bf39005343426d8291b5a42c0a28a73b (diff) | |
download | nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.tar nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.tar.gz nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.tar.bz2 nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.tar.lz nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.tar.xz nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.tar.zst nixpkgs-c0a83cbc4977c725ce61e8a8172b66fe4e2e8396.zip |
opentsdb nixos module: Add option for defining OpenTSDB's configuration
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/opentsdb.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/nixos/modules/services/databases/opentsdb.nix b/nixos/modules/services/databases/opentsdb.nix index 9c9738570e3..0e73d4aca0e 100644 --- a/nixos/modules/services/databases/opentsdb.nix +++ b/nixos/modules/services/databases/opentsdb.nix @@ -5,10 +5,7 @@ with lib; let cfg = config.services.opentsdb; - configFile = pkgs.writeText "opentsdb.conf" '' - tsd.core.auto_create_metrics = true - tsd.http.request.enable_chunked = true - ''; + configFile = pkgs.writeText "opentsdb.conf" cfg.config; in { @@ -59,6 +56,17 @@ in { ''; }; + config = mkOption { + type = types.lines; + default = '' + tsd.core.auto_create_metrics = true + tsd.http.request.enable_chunked = true + ''; + description = '' + The contents of OpenTSDB's configuration file + ''; + }; + }; }; |