1{ pkgs, lib, ... }:
2{
3 name = "sympa";
4 meta.maintainers = with lib.maintainers; [ ];
5
6 nodes.machine =
7 { ... }:
8 {
9
10 services.sympa = {
11 enable = true;
12 domains = {
13 "lists.example.org" = {
14 webHost = "localhost";
15 };
16 };
17 listMasters = [ "bob@example.org" ];
18 web.enable = true;
19 web.https = false;
20 database = {
21 type = "PostgreSQL";
22 createLocally = true;
23 };
24 };
25 };
26
27 testScript = ''
28 start_all()
29
30 machine.wait_for_unit("sympa.service")
31 machine.wait_for_unit("wwsympa.service")
32 assert "Mailing lists service" in machine.succeed(
33 "curl --fail --insecure -L http://localhost/"
34 )
35 '';
36}