mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
26 lines
445 B
Nix
26 lines
445 B
Nix
|
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");
|
||
|
'';
|
||
|
})
|