2023-05-13 15:36:03 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "pretalx";
|
|
|
|
meta.maintainers = lib.teams.c3d2.members;
|
|
|
|
|
|
|
|
nodes = {
|
2024-05-15 14:27:25 +00:00
|
|
|
pretalx = { config, ... }: {
|
2023-05-13 15:36:03 +00:00
|
|
|
networking.extraHosts = ''
|
|
|
|
127.0.0.1 talks.local
|
|
|
|
'';
|
|
|
|
|
|
|
|
services.pretalx = {
|
|
|
|
enable = true;
|
2024-05-15 14:27:25 +00:00
|
|
|
plugins = with config.services.pretalx.package.plugins; [
|
|
|
|
pages
|
|
|
|
];
|
2023-05-13 15:36:03 +00:00
|
|
|
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/")
|
2024-05-09 15:24:58 +00:00
|
|
|
|
|
|
|
pretalx.succeed("pretalx-manage --help")
|
|
|
|
|
|
|
|
pretalx.log(pretalx.succeed("systemd-analyze security pretalx-web.service"))
|
2023-05-13 15:36:03 +00:00
|
|
|
'';
|
|
|
|
}
|