💾 Archived View for tris.fyi › projects › amethyst › quickstart-nixos.gmi captured on 2023-01-29 at 15:51:06. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
This page describes how to install Amethyst configured for a static site with automatic TLS certificate management on NixOS.
This assumes you are using Nix Flakes to manage your system configuration. Add the `amethyst` GitHub repository as an input to your flake:
inputs.amethyst = { url = "github:an-empty-string/amethyst/main"; inputs.nixpkgs.follows = "nixpkgs"; };
Add the module to your nixosConfiguration:
nixosConfigurations = { yoursystem = nixpkgs.lib.nixosSystem { modules = [ ... amethyst.nixosModules.default ] }; };
Then configure Amethyst in a configuration module:
{ services.amethyst = { enable = true; hosts = [{ name = "gemini.tris.fyi"; paths."/" = { root = "/var/gemini"; autoindex = true; cgi = true; }; }]; }; }
You can reload configuration without restarting the server by sending SIGHUP to the Amethyst process.
This would be easier if Amethyst was in nixpkgs, which I'm happy to make happen! I'm just not sure there's enough interest. Please send me an email if you want this!