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

Changed files
+9 -2
nixos
modules
services
+9 -2
nixos/modules/services/security/hologram-server.nix
···
account = cfg.awsAccount;
defaultrole = cfg.awsDefaultRole;
};
-
stats = cfg.statsAddress;
-
listen = cfg.listenAddress;
});
in {
options = {
···
type = types.str;
default = "";
description = "Address of statsd server";
};
};
};
···
account = cfg.awsAccount;
defaultrole = cfg.awsDefaultRole;
};
+
stats = cfg.statsAddress;
+
listen = cfg.listenAddress;
+
cachetimeout = cfg.cacheTimeoutSeconds;
});
in {
options = {
···
type = types.str;
default = "";
description = "Address of statsd server";
+
};
+
+
cacheTimeoutSeconds = mkOption {
+
type = types.int;
+
default = 3600;
+
description = "How often (in seconds) to refresh the LDAP cache";
};
};
};