nixos/promtail: use json type for configuration
This commit is contained in:
@@ -11,20 +11,7 @@ in {
|
|||||||
enable = mkEnableOption "the Promtail ingresser";
|
enable = mkEnableOption "the Promtail ingresser";
|
||||||
|
|
||||||
configuration = mkOption {
|
configuration = mkOption {
|
||||||
type = with lib.types; let
|
type = (pkgs.formats.json {}).type;
|
||||||
valueType = nullOr (oneOf [
|
|
||||||
bool
|
|
||||||
int
|
|
||||||
float
|
|
||||||
str
|
|
||||||
(lazyAttrsOf valueType)
|
|
||||||
(listOf valueType)
|
|
||||||
]) // {
|
|
||||||
description = "JSON value";
|
|
||||||
emptyValue.value = {};
|
|
||||||
deprecationMessage = null;
|
|
||||||
};
|
|
||||||
in valueType;
|
|
||||||
description = ''
|
description = ''
|
||||||
Specify the configuration for Promtail in Nix.
|
Specify the configuration for Promtail in Nix.
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user