kitty: allow float values in settings (#5925)

Some settings in kitty allow floating-point values, but this was not
reflected in the type.
This commit is contained in:
MithicSpirit 2024-10-07 06:18:19 -04:00 committed by GitHub
parent bc623830e6
commit fcf5e608ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@ with lib;
let
cfg = config.programs.kitty;
eitherStrBoolInt = with types; either str (either bool int);
settingsValueType = with types; oneOf [ str bool int float ];
optionalPackage = opt:
optional (opt != null && opt.package != null) opt.package;
@ -102,7 +102,7 @@ in {
};
settings = mkOption {
type = types.attrsOf eitherStrBoolInt;
type = types.attrsOf settingsValueType;
default = { };
example = literalExpression ''
{