mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
25 lines
503 B
Nix
25 lines
503 B
Nix
{ pkgs, ... }:
|
|
{
|
|
name = "trezord";
|
|
meta = {
|
|
maintainers = with pkgs.lib.maintainers; [
|
|
mmahut
|
|
_1000101
|
|
];
|
|
};
|
|
nodes = {
|
|
machine =
|
|
{ ... }:
|
|
{
|
|
services.trezord.enable = true;
|
|
services.trezord.emulator.enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
machine.wait_for_unit("trezord.service")
|
|
machine.wait_for_open_port(21325)
|
|
machine.wait_until_succeeds("curl -fL http://localhost:21325/status/ | grep Version")
|
|
'';
|
|
}
|