1 { pkgs, lib, config, ... }:
2 let inherit (config.users) groups;
3 domain = "sourcephile.fr";
6 systemd.services.public-inbox-httpd = {
7 serviceConfig.SupplementaryGroups = [ groups."git-daemon".name ];
9 services.public-inbox = {
11 path = with pkgs; [ /*spamassassin*/ ];
12 #mda.args = [ "--no-precheck" ];
14 watch.spamCheck = null;
17 "https://mails.${domain}/inbox"
18 "https://public-inbox.${domain}/inbox"
20 wwwListing = "match=domain";
21 config.publicinbox = {
22 css = [ "href=https://mails.${domain}/style/light.css" ];
25 nntpServer = [ "nntps://news.${domain}" ];
26 nntp.cert = "/var/lib/acme/${domain}/fullchain.pem";
27 nntp.key = "/var/lib/acme/${domain}/key.pem";
28 nntp.extraGroups = [ groups.acme.name ];
34 "public-inbox+atelier@${domain}"
38 discussions concernant le développement logiciel.
40 url = "https://mails.${domain}/inbox/atelier";
41 newsgroup = "inbox.comp.sourcephile.atelier";
44 # TODO: list many source code repositories
50 "public-inbox+bar@${domain}"
54 discussions concernant l'informatique en général.
56 url = "https://mails.${domain}/inbox/bar";
57 newsgroup = "inbox.comp.sourcephile.bar";
62 "public-inbox+contact@${domain}"
66 discussions avec le grand public.
68 url = "https://mails.${domain}/inbox/contact";
69 newsgroup = "inbox.comp.sourcephile.contact";
70 #config.coderepo = [ "sourcephile" ];
75 "public-inbox+ecole@${domain}"
79 discussions pour s'entraider en informatique.
81 url = "https://mails.${domain}/inbox/ecole";
82 newsgroup = "inbox.comp.sourcephile.ecole";
83 config.coderepo = [ "sourcephile-txt" ];
87 "environnement@${domain}"
88 "public-inbox+environnement@${domain}"
91 environnement@${domain} :
92 discussions sur les impacts environnementaux de l'informatique.
94 url = "https://mails.${domain}/inbox/environnement";
95 newsgroup = "inbox.comp.sourcephile.environnement";
96 config.coderepo = [ "sourcephile-txt" ];
101 "public-inbox+labo@${domain}"
105 discussions concernant la science de l'informatique.
107 url = "https://mails.${domain}/inbox/labo";
108 newsgroup = "inbox.comp.sourcephile.labo";
111 # TODO: list many source code repositories
117 "public-inbox+machines@${domain}"
121 discussions concernant l'administration technique de l'infrastructure informatique.
123 url = "https://mails.${domain}/inbox/machines";
124 newsgroup = "inbox.comp.sourcephile.machines";
125 config.coderepo = [ "sourcephile-txt" "sourcephile-nix" ];
130 "public-inbox+pont@${domain}"
134 discussions à l'attention de l'ensemble des personnes à bord.
136 url = "https://mails.${domain}/inbox/pont";
137 newsgroup = "inbox.comp.sourcephile.pont";
138 config.coderepo = [ "sourcephile-txt" ];
143 "public-inbox+test@${domain}"
147 une cible de test pour effectuer des tirs de mails.
149 url = "https://mails.${domain}/inbox/test";
150 newsgroup = "inbox.comp.sourcephile.test";
152 hide = ["www" "manifest"];
159 dir = "/var/lib/gitolite/repositories/sourcephile-txt.git";
160 cgitUrl = "https://code.${domain}/sourcephile-txt.git";
163 dir = "/var/lib/gitolite/repositories/sourcephile-nix.git";
164 cgitUrl = "https://code.${domain}/sourcephile-nix.git";
168 security.acme.certs."${domain}" = {
169 postRun = "systemctl reload public-inbox-nntp";
171 systemd.services.public-inbox = {
172 wants = [ "acme-selfsigned-${domain}.service" "acme-${domain}.service"];
173 after = [ "acme-selfsigned-${domain}.service" ];