fork/home-manager
git clone https://git.julia.blue/fork/home-manager
cb09a968
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . kitty = { 8enable = true ; 9 10darwinLaunchOptions = lib . mkIf pkgs . stdenv . hostPlatform . isDarwin [ 11"--single-instance" 12"--directory=/tmp/my-dir" 13"--listen-on=unix:/tmp/my-socket" 14]; 15 16settings = { 17scrollback_lines = 10000 ; 18enable_audio_bell = false ; 19update_check_interval = 0 ; 20}; 21 22font . name = "DejaVu Sans" ; 23font . size = 8 ; 24 25keybindings = { 26"ctrl+c" = "copy_or_interrupt" ; 27"ctrl+f>2" = "set_font_size 20" ; 28}; 29 30environment = { LS_COLORS = "1" ; }; 31}; 32 33test . stubs . kitty = { }; 34 35nmt . script = '' 36assertFileExists home-files/.config/kitty/kitty.conf 37assertFileContent \ 38home-files/.config/kitty/kitty.conf \ 39${ ./example-settings-expected.conf } 40'' + lib . optionalString pkgs . stdenv . hostPlatform . isDarwin '' 41assertFileContent \ 42home-files/.config/kitty/macos-launch-services-cmdline \ 43${ ./example-macos-launch-services-cmdline } 44'' ; 45}; 46}