mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
34 lines
676 B
Nix
34 lines
676 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
name = "yabar";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ ma27 ];
|
|
};
|
|
|
|
machine = {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
services.xserver.displayManager.auto.user = "bob";
|
|
|
|
programs.yabar.enable = true;
|
|
programs.yabar.bars = {
|
|
top.indicators.date.exec = "YABAR_DATE";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_x()
|
|
|
|
# confirm proper startup
|
|
machine.wait_for_unit("yabar.service", "bob")
|
|
machine.sleep(10)
|
|
machine.wait_for_unit("yabar.service", "bob")
|
|
|
|
machine.screenshot("top_bar")
|
|
'';
|
|
})
|