1{
2 name = "yabar";
3 meta.maintainers = [ ];
4
5 nodes.machine = {
6 imports = [
7 ./common/x11.nix
8 ./common/user-account.nix
9 ];
10
11 test-support.displayManager.auto.user = "bob";
12
13 programs.yabar.enable = true;
14 programs.yabar.bars = {
15 top.indicators.date.exec = "YABAR_DATE";
16 };
17 };
18
19 testScript = ''
20 machine.start()
21 machine.wait_for_x()
22
23 # confirm proper startup
24 machine.wait_for_unit("yabar.service", "bob")
25 machine.sleep(10)
26 machine.wait_for_unit("yabar.service", "bob")
27
28 machine.screenshot("top_bar")
29 '';
30}