update kitty
This commit is contained in:
parent
78b9c84e62
commit
db416ee93a
1 changed files with 30 additions and 6 deletions
|
|
@ -1,18 +1,42 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
catppuccin-kitty = pkgs.fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "kitty";
|
||||||
|
rev = "b14e8385c827f2d41660b71c7fec1e92bdcf2676";
|
||||||
|
sha256 = "sha256-59ON7CzVgfZUo7F81qQZQ1r6kpcjR3OPvTl99gzDP8E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
|
||||||
|
mkdir -p $out
|
||||||
|
${pkgs.gnused}/bin/sed 's/#cba6f7/${
|
||||||
|
pkgs.catppuccin.${config.catppuccin.flavor}.${config.catppuccin.accent}
|
||||||
|
}/g' ${catppuccin-kitty}/themes/${config.catppuccin.flavor}.conf > \
|
||||||
|
$out/${config.catppuccinUpper.flavor}${config.catppuccinUpper.accent}.conf
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.file.".config/kitty/themes" = {
|
||||||
|
source = mergedConfig;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGitIntegration = true;
|
enableGitIntegration = true;
|
||||||
themeFile = "Catppuccin-${config.catppuccinUpper.flavor}";
|
|
||||||
font = {
|
font = {
|
||||||
name = config.userOptions.fontMono.name;
|
name = config.userOptions.fontMono.name;
|
||||||
size = config.userOptions.fontMono.size;
|
size = config.userOptions.fontMono.size;
|
||||||
};
|
};
|
||||||
shellIntegration = {
|
shellIntegration.enableFishIntegration = true;
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
settings = {
|
settings = {
|
||||||
|
include = "/home/${config.userOptions.username}/.config/kitty/themes/${config.catppuccinUpper.flavor}${config.catppuccinUpper.accent}.conf";
|
||||||
scrollback_lines = 10000;
|
scrollback_lines = 10000;
|
||||||
enable_audio_bell = false;
|
enable_audio_bell = false;
|
||||||
update_check_interval = 0;
|
update_check_interval = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue