fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessontests: add option `test.stubs`cb09a968

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