1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-03 03:48:31 +02:00
home-manager/tests/modules/programs/rofi/assert-on-both-theme-and-colors.nix

33 lines
668 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2019-09-04 12:46:04 +02:00
with lib;
{
config = {
programs.rofi = {
enable = true;
theme = "foo";
colors = {
window = {
background = "background";
border = "border";
separator = "separator";
};
2020-02-02 00:39:17 +01:00
rows = { };
2019-09-04 12:46:04 +02:00
};
};
2020-02-02 00:39:17 +01:00
home.file.result.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
2019-09-04 12:46:04 +02:00
nixpkgs.overlays =
[ (self: super: { rofi = pkgs.writeScriptBin "dummy-rofi" ""; }) ];
2019-09-04 12:46:04 +02:00
nmt.script = ''
assertFileContent \
home-files/result \
${./assert-on-both-theme-and-colors-expected.json}
'';
};
}