mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-19 16:40:32 +03:00
23 lines
403 B
Nix
23 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")
|
|
'';
|
|
}
|