fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
1.0 KiB43 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.rofi = {
8      enable = true;
9
10      theme = let inherit (config.lib.formats.rasi) mkLiteral;
11      in {
12        "@import" = "~/.cache/wal/colors-rofi-dark";
13
14        "*" = {
15          background-color = mkLiteral "#000000";
16          foreground-color = mkLiteral "rgba ( 250, 251, 252, 100 % )";
17          border-color = mkLiteral "#FFFFFF";
18          width = 512;
19        };
20
21        "#inputbar" = { children = map mkLiteral [ "prompt" "entry" ]; };
22
23        "#textbox-prompt-colon" = {
24          expand = false;
25          str = ":";
26          margin = mkLiteral "0px 0.3em 0em 0em";
27          text-color = mkLiteral "@foreground-color";
28        };
29      };
30    };
31
32    test.stubs.rofi = { };
33
34    nmt.script = ''
35      assertFileContent \
36        home-files/.config/rofi/config.rasi \
37        ${./custom-theme-config.rasi}
38      assertFileContent \
39        home-files/.local/share/rofi/themes/custom.rasi \
40        ${./custom-theme.rasi}
41    '';
42  };
43}