mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
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:
@@ -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 ''
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user