Add more kitty configuration values
This commit is contained in:
parent
5d5abbc1a8
commit
351584ecb4
4 changed files with 22 additions and 10 deletions
|
|
@ -1 +1,3 @@
|
||||||
{ }
|
{
|
||||||
|
# this file adds custom NixOS configuration
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
{ }
|
{
|
||||||
|
# this file adds custom home-manager configuration
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
options,
|
options,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ let
|
||||||
"e" = "d";
|
"e" = "d";
|
||||||
"f" = "e";
|
"f" = "e";
|
||||||
};
|
};
|
||||||
|
# don't ask :)
|
||||||
base =
|
base =
|
||||||
"#"
|
"#"
|
||||||
+ lib.strings.concatStrings (
|
+ lib.strings.concatStrings (
|
||||||
|
|
@ -42,6 +43,15 @@ in
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Enables kitty";
|
description = "Enables kitty";
|
||||||
};
|
};
|
||||||
|
additionalConfig = lib.mkOption {
|
||||||
|
default = { };
|
||||||
|
example = {
|
||||||
|
# for the insane people out there :P
|
||||||
|
enable_audio_bell = "yes";
|
||||||
|
};
|
||||||
|
type = with lib.types; attrsOf anything;
|
||||||
|
description = "Additional kitty configuration";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf config.mods.kitty.enable (
|
config = lib.mkIf config.mods.kitty.enable (
|
||||||
lib.optionalAttrs (options ? home.packages) {
|
lib.optionalAttrs (options ? home.packages) {
|
||||||
|
|
@ -59,10 +69,10 @@ in
|
||||||
sync_with_monitor = "no";
|
sync_with_monitor = "no";
|
||||||
background_opacity = "0.8";
|
background_opacity = "0.8";
|
||||||
|
|
||||||
font_family = "JetBrainsMono Nerd Font Mono";
|
font_family = "${config.mods.stylix.monospace.name}";
|
||||||
bold_font = "JetBrainsMono Nerd Font Mono Extra Bold";
|
bold_font = "${config.mods.stylix.monospace.name} Extra Bold";
|
||||||
italic_font = "JetBrainsMono Nerd Font Mono Extra Italic";
|
italic_font = "${config.mods.stylix.monospace.name} Extra Italic";
|
||||||
bold_italic_font = "JetBrainsMono Nerd Font Mono Extra Bold Italic";
|
bold_italic_font = "${config.mods.stylix.monospace.name} Extra Bold Italic";
|
||||||
|
|
||||||
background = base;
|
background = base;
|
||||||
foreground = "#" + scheme.base05;
|
foreground = "#" + scheme.base05;
|
||||||
|
|
@ -96,9 +106,8 @@ in
|
||||||
color14 = "#" + scheme.base0C;
|
color14 = "#" + scheme.base0C;
|
||||||
color15 = "#" + scheme.base07;
|
color15 = "#" + scheme.base07;
|
||||||
|
|
||||||
shell = "fish";
|
shell = lib.mkIf config.mods.fish.enable "fish";
|
||||||
};
|
} // config.mods.kitty.additionalConfig;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue