toString for percentile

This commit is contained in:
niten 2021-12-14 14:12:40 -08:00
parent e66e349c3b
commit 3ae2c5ce8e

View File

@ -2,6 +2,8 @@
with lib;
let
cfg = config.informis.chute;
currencyOpts = { ... }: {
options = {
stop-percentile = mkOption {
@ -48,7 +50,7 @@ let
description = "Chute ${stage} job for ${currency}";
path = [ package ];
environmentFile = credential-file;
execStart = "chute --currency=${currency} --stop-at-percent=${stop-at-percent}";
execStart = "chute --currency=${currency} --stop-at-percent=${toString stop-at-percent}";
privateNetwork = false;
addressFamilies = [ "AF_INET" ];
};