Compare commits
1 Commits
36f5d5cdd7
...
dendritic
| Author | SHA1 | Date | |
|---|---|---|---|
| 75f0e2993f |
55
modules/features/kitty/default.nix
Normal file
55
modules/features/kitty/default.nix
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user