Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
name = "tlsrpt";
|
|
|
|
meta = {
|
|
inherit (pkgs.tlsrpt-reporter.meta) maintainers;
|
|
};
|
|
|
|
nodes.machine = {
|
|
services.tlsrpt = {
|
|
enable = true;
|
|
reportd.settings = {
|
|
organization_name = "NixOS Testers United";
|
|
contact_info = "smtp-tls-report@localhost";
|
|
sender_address = "noreply@localhost";
|
|
};
|
|
};
|
|
|
|
# To test the postfix integration
|
|
services.postfix.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("tlsrpt-collectd.service")
|
|
machine.wait_for_unit("tlsrpt-reportd.service")
|
|
|
|
machine.wait_for_file("/run/tlsrpt/collectd.sock")
|
|
machine.wait_until_succeeds("journalctl -o cat -u tlsrpt-collectd | grep -Pq 'Database .* setup finished'")
|
|
machine.wait_until_succeeds("journalctl -o cat -u tlsrpt-reportd | grep -Pq 'Database .* setup finished'")
|
|
machine.wait_until_succeeds("journalctl -o cat -u tlsrpt-reportd | grep -Pq 'Fetcher .* finished'")
|
|
|
|
# Enabling postfix should put sendmail as the sendmail setting
|
|
machine.succeed("grep -q sendmail_script=/run/wrappers/bin/sendmail /etc/tlsrpt/reportd.cfg")
|
|
machine.succeed("getent group tlsrpt | grep -q postfix")
|
|
|
|
machine.log(machine.succeed("systemd-analyze security tlsrpt-collectd.service tlsrpt-reportd.service | grep -v ✓"))
|
|
'';
|
|
}
|