1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-05 12:53:27 +02:00
home-manager/tests/modules/programs/rofi/assert-on-both-theme-and-colors.nix
2020-02-02 01:07:28 +01:00

30 lines
564 B
Nix

{ config, lib, ... }:
with lib;
{
config = {
programs.rofi = {
enable = true;
theme = "foo";
colors = {
window = {
background = "background";
border = "border";
separator = "separator";
};
rows = { };
};
};
home.file.result.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
nmt.script = ''
assertFileContent \
home-files/result \
${./assert-on-both-theme-and-colors-expected.json}
'';
};
}