fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
828 B
Nix
38 lines
828 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
name = "pretalx";
|
|
meta.maintainers = lib.teams.c3d2.members;
|
|
|
|
nodes = {
|
|
pretalx = { config, ... }: {
|
|
networking.extraHosts = ''
|
|
127.0.0.1 talks.local
|
|
'';
|
|
|
|
services.pretalx = {
|
|
enable = true;
|
|
plugins = with config.services.pretalx.package.plugins; [
|
|
pages
|
|
];
|
|
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/")
|
|
|
|
pretalx.succeed("pretalx-manage --help")
|
|
|
|
pretalx.log(pretalx.succeed("systemd-analyze security pretalx-web.service"))
|
|
'';
|
|
}
|