fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
1.5 KiB64 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.gnome-terminal = {
8      enable = true;
9      profile = {
10        "e0b782ed-6aca-44eb-8c75-62b3706b6220" = {
11          allowBold = true;
12          audibleBell = true;
13          backspaceBinding = "ascii-delete";
14          boldIsBright = true;
15          colors = {
16            backgroundColor = "#2E3436";
17            foregroundColor = "#D3D7C1";
18            palette = [
19              "#000000"
20              "#AA0000"
21              "#00AA00"
22              "#AA5500"
23              "#0000AA"
24              "#AA00AA"
25              "#00AAAA"
26              "#AAAAAA"
27              "#555555"
28              "#FF5555"
29              "#55FF55"
30              "#FFFF55"
31              "#5555FF"
32              "#FF55FF"
33              "#55FFFF"
34              "#FFFFFF"
35            ];
36          };
37          cursorBlinkMode = "off";
38          cursorShape = "underline";
39          default = true;
40          deleteBinding = "delete-sequence";
41          scrollbackLines = 1000000;
42          scrollOnOutput = false;
43          showScrollbar = false;
44          transparencyPercent = 5;
45          visibleName = "kamadorueda";
46        };
47      };
48      showMenubar = false;
49    };
50
51    nixpkgs.overlays = [
52      (self: super: {
53        gnome.gnome-terminal = config.lib.test.mkStubPackage { };
54      })
55    ];
56
57    test.stubs.dconf = { };
58
59    nmt.script = ''
60      dconfIni=$(grep -oPm 1 '/nix/store/[a-z0-9]*?-hm-dconf.ini' $TESTED/activate)
61      assertFileContent $dconfIni ${./gnome-terminal-1.conf}
62    '';
63  };
64}