fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
550 B31 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.alacritty = {
8      enable = true;
9      package = config.lib.test.mkStubPackage { };
10
11      settings = {
12        window.dimensions = {
13          lines = 3;
14          columns = 200;
15        };
16
17        key_bindings = [{
18          key = "K";
19          mods = "Control";
20          chars = "\\x0c";
21        }];
22      };
23    };
24
25    nmt.script = ''
26      assertFileContent \
27        home-files/.config/alacritty/alacritty.yml \
28        ${./example-settings-expected.yml}
29    '';
30  };
31}