mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
32 lines
590 B
Nix
32 lines
590 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
name = "pretalx";
|
|
meta.maintainers = lib.teams.c3d2.members;
|
|
|
|
nodes = {
|
|
pretalx = {
|
|
networking.extraHosts = ''
|
|
127.0.0.1 talks.local
|
|
'';
|
|
|
|
services.pretalx = {
|
|
enable = true;
|
|
nginx.domain = "talks.local";
|
|
settings = {
|
|
site.url = "http://talks.local";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
pretalx.wait_for_unit("pretalx-web.service")
|
|
pretalx.wait_for_unit("pretalx-worker.service")
|
|
|
|
pretalx.wait_until_succeeds("curl -q --fail http://talks.local/orga/")
|
|
'';
|
|
}
|