1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-03 05:23:32 +02:00
home-manager/tests/modules/programs/rofi/assert-on-both-theme-and-colors.nix
2020-03-06 00:27:21 +01:00

33 lines
668 B
Nix

{ config, lib, pkgs, ... }:
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));
nixpkgs.overlays =
[ (self: super: { rofi = pkgs.writeScriptBin "dummy-rofi" ""; }) ];
nmt.script = ''
assertFileContent \
home-files/result \
${./assert-on-both-theme-and-colors-expected.json}
'';
};
}