1{ config, self, ... }:
2let
3 d = self.lib.data.services.webmentiond;
4 p = toString d.port;
5in
6{
7 virtualisation.oci-containers.containers.webmentiond = {
8 image = "zerok/webmentiond:latest";
9 volumes = [ "/var/lib/webmentiond:/data" ];
10 environmentFiles = [ config.age.secrets.webmentiond-env.path ];
11 ports = [ "${p}:${p}" ];
12 cmd = [
13 "--addr 0.0.0.0:${p}"
14 "--public-url https://${d.extUrl}"
15 "--auth-admin-emails pyrox@pyrox.dev"
16 ];
17 };
18 config.age.secrets = {
19 webmentiond-env.path = ./secrets/webmentiond-env.age;
20 owner = "thehedgehog";
21 group = "misc";
22 };
23}