2021-04-07 16:18:09 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
2021-08-27 04:08:34 +02:00
|
|
|
|
|
|
|
darwinLaunchOptions = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin [
|
|
|
|
"--single-instance"
|
|
|
|
"--directory=/tmp/my-dir"
|
|
|
|
"--listen-on=unix:/tmp/my-socket"
|
|
|
|
];
|
|
|
|
|
2021-04-07 16:18:09 +02:00
|
|
|
settings = {
|
|
|
|
scrollback_lines = 10000;
|
|
|
|
enable_audio_bell = false;
|
|
|
|
update_check_interval = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
font.name = "DejaVu Sans";
|
|
|
|
font.size = 8;
|
|
|
|
|
|
|
|
keybindings = {
|
|
|
|
"ctrl+c" = "copy_or_interrupt";
|
|
|
|
"ctrl+f>2" = "set_font_size 20";
|
|
|
|
};
|
2021-08-27 04:08:34 +02:00
|
|
|
|
|
|
|
environment = { LS_COLORS = "1"; };
|
2021-04-07 16:18:09 +02:00
|
|
|
};
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
test.stubs.kitty = { };
|
2021-04-29 00:24:22 +02:00
|
|
|
|
2021-04-07 16:18:09 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/kitty/kitty.conf
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/kitty/kitty.conf \
|
|
|
|
${./example-settings-expected.conf}
|
2021-08-27 04:08:34 +02:00
|
|
|
'' + lib.optionalString pkgs.stdenv.hostPlatform.isDarwin ''
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/kitty/macos-launch-services-cmdline \
|
|
|
|
${./example-macos-launch-services-cmdline}
|
2021-04-07 16:18:09 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|