summary refs log tree commit diff
path: root/nixos/tests/yabar.nix
blob: 06fe5bc2b27846d14fba900b733f02ccd7df0072 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import ./make-test.nix ({ pkgs, lib, ... }:

with lib;

{
  name = "yabar";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ ma27 ];
  };

  nodes.yabar = {
    imports = [ ./common/x11.nix ./common/user-account.nix ];

    services.xserver.displayManager.auto.user = "bob";

    programs.yabar.enable = true;
  };

  testScript = ''
    $yabar->start;
    $yabar->waitForX;

    $yabar->waitForUnit("yabar.service", "bob");
  '';
})