mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-20 09:00:41 +03:00
24 lines
403 B
Nix
24 lines
403 B
Nix
![]() |
{ lib, ... }:
|
||
|
let
|
||
|
port = 8080;
|
||
|
in
|
||
|
{
|
||
|
name = "corteza";
|
||
|
meta.maintainers = [ lib.teams.ngi.members ];
|
||
|
|
||
|
nodes.machine = {
|
||
|
services.corteza = {
|
||
|
enable = true;
|
||
|
inherit port;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.start()
|
||
|
|
||
|
machine.wait_for_unit("default.target")
|
||
|
|
||
|
machine.wait_until_succeeds("curl http://localhost:${toString port}/auth/login | grep button-login")
|
||
|
'';
|
||
|
}
|