From 60eff0eecb308e4a38c4db76e20f0f49fd7f2715 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Wed, 5 Dec 2018 19:21:36 +0100 Subject: [PATCH] nixos/grafana: use new default for connMaxLifetime --- nixos/modules/services/monitoring/grafana.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index c0c16a429d8..5fb3e377122 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -169,8 +169,9 @@ in { Sets the maximum amount of time (in seconds) a connection may be reused. For MySQL this setting should be shorter than the `wait_timeout' variable. ''; - default = 14400; - type = types.int; + default = "unlimited"; + example = 14400; + type = types.either types.int (types.enum [ "unlimited" ]); }; };