hologram-server module: add cache timeout option

The version of hologram we're using has supported this option for a
while, but we didn't expose it through the NixOS module
This commit is contained in:
Dan Peebles 2018-03-21 12:58:19 -04:00
parent bacb2e216e
commit 6fa9d9cdbd

View File

@ -23,8 +23,9 @@ let
account = cfg.awsAccount; account = cfg.awsAccount;
defaultrole = cfg.awsDefaultRole; defaultrole = cfg.awsDefaultRole;
}; };
stats = cfg.statsAddress; stats = cfg.statsAddress;
listen = cfg.listenAddress; listen = cfg.listenAddress;
cachetimeout = cfg.cacheTimeoutSeconds;
}); });
in { in {
options = { options = {
@ -106,6 +107,12 @@ in {
default = ""; default = "";
description = "Address of statsd server"; description = "Address of statsd server";
}; };
cacheTimeoutSeconds = mkOption {
type = types.int;
default = 3600;
description = "How often (in seconds) to refresh the LDAP cache";
};
}; };
}; };