modules/graphical: update alacritty settings for NixOS 24.05

This commit is contained in:
Hendrik Sokolowski 2024-07-01 20:55:14 +02:00
parent 995153a29f
commit 38a5dc1ece
Signed by: hensoko
GPG key ID: 5C36A01B80BCCC59
2 changed files with 8 additions and 8 deletions

View file

@ -30,9 +30,6 @@
multiplier = 3; multiplier = 3;
}; };
# When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors = true;
font = { font = {
# The normal (roman) font face to use. # The normal (roman) font face to use.
normal = { normal = {
@ -68,7 +65,7 @@
}; };
}; };
key_bindings = [ keyboard.bindings = [
{ {
key = "V"; key = "V";
mods = "Control|Alt"; mods = "Control|Alt";
@ -168,6 +165,9 @@
foreground = "0xe3e1e4"; foreground = "0xe3e1e4";
}; };
# When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors = true;
# Cursor colors # Cursor colors
# #
# Colors which should be used to draw the terminal cursor. # Colors which should be used to draw the terminal cursor.

View file

@ -7,7 +7,7 @@
with lib; let with lib; let
psCfg = config.pub-solar; psCfg = config.pub-solar;
cfg = config.pub-solar.graphical; cfg = config.pub-solar.graphical;
yamlFormat = pkgs.formats.yaml {}; tomlFormat = pkgs.formats.toml {};
recursiveMerge = attrList: let recursiveMerge = attrList: let
f = attrPath: f = attrPath:
zipAttrsWith ( zipAttrsWith (
@ -27,7 +27,7 @@ in {
enable = mkEnableOption "Life in color"; enable = mkEnableOption "Life in color";
alacritty = { alacritty = {
settings = mkOption { settings = mkOption {
type = yamlFormat.type; type = tomlFormat.type;
default = {}; default = {};
}; };
}; };
@ -113,8 +113,8 @@ in {
toggle-kbd-layout toggle-kbd-layout
]; ];
xdg.configFile."alacritty/alacritty.yml" = { xdg.configFile."alacritty/alacritty.toml" = {
source = yamlFormat.generate "alacritty.yml" (recursiveMerge [(import ./alacritty.nix) cfg.alacritty.settings]); source = tomlFormat.generate "alacritty.toml" (recursiveMerge [(import ./alacritty.nix) cfg.alacritty.settings]);
}; };
gtk = { gtk = {