1 import ./make-test-python.nix ({ lib, ... }:
3 certs = import ./common/acme/server/snakeoil-certs.nix;
4 mobilizonDomain = certs.domain;
10 meta.maintainers = with lib.maintainers; [ minijackson erictapen ];
15 services.mobilizon = {
20 name = "Test Mobilizon";
21 hostname = mobilizonDomain;
23 "Mobilizon.Web.Endpoint".http.port = port;
28 security.pki.certificateFiles = [ certs.ca.cert ];
30 services.nginx.virtualHosts."${mobilizonDomain}" = {
31 enableACME = lib.mkForce false;
32 sslCertificate = certs.${mobilizonDomain}.cert;
33 sslCertificateKey = certs.${mobilizonDomain}.key;
36 networking.hosts."::1" = [ mobilizonDomain ];
40 server.wait_for_unit("mobilizon.service")
41 server.wait_for_open_port(${toString port})
42 server.succeed("curl --fail https://${mobilizonDomain}/")