kitty: add environment and darwinLaunchOptions options (#2280)
* kitty: add environment option * kitty: add darwinLaunchOptions option See https://sw.kovidgoyal.net/kitty/faq/#how-do-i-specify-command-line-options-for-kitty-on-macos * kitty: only allow darwinLaunchOptions on darwin * kitty: make expression shorter * kitty: fix assertion message
This commit is contained in:
parent
f637e145d7
commit
33db7cc6a6
4 changed files with 59 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
--single-instance --directory=/tmp/my-dir --listen-on=unix:/tmp/my-socket
|
||||
|
|
@ -14,4 +14,7 @@ map ctrl+c copy_or_interrupt
|
|||
map ctrl+f>2 set_font_size 20
|
||||
|
||||
|
||||
env LS_COLORS=1
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,13 @@ with lib;
|
|||
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;
|
||||
|
|
@ -19,6 +26,8 @@ with lib;
|
|||
"ctrl+c" = "copy_or_interrupt";
|
||||
"ctrl+f>2" = "set_font_size 20";
|
||||
};
|
||||
|
||||
environment = { LS_COLORS = "1"; };
|
||||
};
|
||||
|
||||
nixpkgs.overlays =
|
||||
|
|
@ -29,6 +38,10 @@ with lib;
|
|||
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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue