26 lines
588 B
Nix
26 lines
588 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.userSettings.kitty;
|
|
in {
|
|
options = {
|
|
userSettings.kitty = {
|
|
enable = lib.mkEnableOption "Enable kitty";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [ pkgs.kitty ];
|
|
programs.kitty.enable = true;
|
|
programs.kitty.settings = {
|
|
background_opacity = lib.mkForce "0.85";
|
|
modify_font = "cell_width 90%";
|
|
confirm_os_window_close = 0;
|
|
};
|
|
programs.kitty.keybindings = {
|
|
"ctrl+equal" = "change_font_size all +2.0";
|
|
"ctrl+minus" = "change_font_size all -2.0";
|
|
};
|
|
};
|
|
}
|