mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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:
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 ''
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ font_size 8
|
|||
# Shell integration is sourced and configured manually
|
||||
shell_integration no-rc
|
||||
|
||||
background_opacity 0.500000
|
||||
enable_audio_bell no
|
||||
scrollback_lines 10000
|
||||
update_check_interval 0
|
||||
|
|
|
@ -17,6 +17,7 @@ with lib;
|
|||
scrollback_lines = 10000;
|
||||
enable_audio_bell = false;
|
||||
update_check_interval = 0;
|
||||
background_opacity = 0.5;
|
||||
};
|
||||
|
||||
font.name = "DejaVu Sans";
|
||||
|
|
Loading…
Reference in a new issue