1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/tests/modules/programs/kitty/example-settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

51 lines
1.2 KiB
Nix

{ lib, pkgs, ... }:
{
config = {
programs.kitty = {
enable = true;
darwinLaunchOptions = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin [
"--single-instance"
"--directory=/tmp/my-dir"
"--listen-on=unix:/tmp/my-socket"
];
settings = {
scrollback_lines = 10000;
enable_audio_bell = false;
update_check_interval = 0;
background_opacity = 0.5;
};
font.name = "DejaVu Sans";
font.size = 8;
keybindings = {
"ctrl+c" = "copy_or_interrupt";
"ctrl+f>2" = "set_font_size 20";
};
actionAliases = {
"launch_tab" = "launch --cwd=current --type=tab";
"launch_window" = "launch --cwd=current --type=os-window";
};
environment = {
LS_COLORS = "1";
};
};
nmt.script =
''
assertFileExists home-files/.config/kitty/kitty.conf
assertFileContent \
home-files/.config/kitty/kitty.conf \
${./example-settings-expected.conf}
''
+ lib.optionalString pkgs.stdenv.hostPlatform.isDarwin ''
assertFileContent \
home-files/.config/kitty/macos-launch-services-cmdline \
${./example-macos-launch-services-cmdline}
'';
};
}