1 { pkgs, lib, config, ... }:
2 let inherit (config.users) groups;
3 domain = "sourcephile.fr";
6 services.public-inbox = {
8 path = with pkgs; [ /*spamassassin*/ ];
9 #mda.args = [ "--no-precheck" ];
11 watch.spamCheck = null;
13 #config.publicinbox.css =
14 # [ "href=https://${domain}/lists/public-inbox.css" ];
16 http.mounts = [ "https://${domain}/lists" ];
17 wwwListing = "match=domain";
19 nntpServer = [ "nntps://news.${domain}" ];
20 nntp.cert = "/var/lib/acme/${domain}/fullchain.pem";
21 nntp.key = "/var/lib/acme/${domain}/key.pem";
22 nntp.extraGroups = [ groups.acme.name ];
27 "public-inbox+equipage@${domain}"
30 description = "Équipage";
31 url = "https://${domain}/lists/equipage";
32 newsgroup = "inbox.comp.sourcephile.equipage";
33 #config.coderepo = [ "sourcephile" ];
38 config.coderepo.sourcephile-nix = {
39 dir = "/var/lib/git/repositories/sourcephile.git";
40 cgitUrl = "https://${domain}/git/sourcephile";
44 security.acme.certs."${domain}" = {
45 postRun = "systemctl reload public-inbox-nntp";
47 systemd.services.public-inbox = {
48 wants = [ "acme-selfsigned-${domain}.service" "acme-${domain}.service"];
49 after = [ "acme-selfsigned-${domain}.service" ];