Hosting Gemini on NixOS

NixOS has a module for configuring the Molly Brown server in nixos-unstable (the nixos-unstable sometime before nixos-20.09).

The Nix configuration for serving this gemlog is roughly as follows:

And the flake.nix is something like this:

The trick to getting TLS to work is to instantiate an nginx server that letsencrypt can hit and reuse that certificate.

Proxied content from gemini://spam.works/users/emery/nixos-hosting.gmi

Gemini request details:

Original URL
gemini://spam.works/users/emery/nixos-hosting.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.