56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
self,
|
|
inputs,
|
|
...
|
|
}: {
|
|
flake.nixosModules.kitty = {
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
programs.kitty = {
|
|
enable = true;
|
|
package = self.packages.${pkgs.stdenv.hostPlatform.system}.kitty;
|
|
};
|
|
};
|
|
perSystem = {
|
|
pkgs,
|
|
lib,
|
|
self',
|
|
...
|
|
}: {
|
|
packages.kitty = let
|
|
myFont = pkgs.nerd-fonts.fira-mono; # or any font-providing package
|
|
fontsConf = pkgs.makeFontsConf {
|
|
fontDirectories = [myFont];
|
|
};
|
|
in
|
|
inputs.wrappers.wrappers.kitty.wrap {
|
|
inherit pkgs;
|
|
environment = {
|
|
"FONTCONFIG_FILE" = "${fontsConf}";
|
|
};
|
|
font = {
|
|
name = "FiraMono Nerd Font";
|
|
size = 11;
|
|
};
|
|
settings = {
|
|
font_size = 11;
|
|
window_padding_width = 10;
|
|
background_opacity = 0.50;
|
|
confirm_os_window_close = 0;
|
|
enable_audio_bell = false;
|
|
cursor_trail = 1;
|
|
cursor_trail_start_threshold = 1;
|
|
cursor_trail_color = "#cba6f7";
|
|
cursor_shape = "beam";
|
|
allow_remote_control = true;
|
|
};
|
|
keybindings = {
|
|
"ctrl+backspace" = "send_text all \\x17";
|
|
};
|
|
themeFile = "Catppuccin-Mocha";
|
|
};
|
|
};
|
|
}
|