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:
parent
bc623830e6
commit
fcf5e608ac
3 changed files with 4 additions and 2 deletions
|
|
@ -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 ''
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue