Files
learning/README.md
T
2026-09-15 18:51:32 +00:00

949 B

iana-angl site

Build the static Leptos/Trunk site:

nix build .#iana-angl

NixOS integration

Add this flake as an input, import its module, and provide the built package and virtual host domain:

{
  inputs.iana-angl.url = "path:/home/yukkop/pj/iana-angl";

  outputs = { nixpkgs, ... }@inputs: {
    nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        inputs.iana-angl.nixosModules.iana-angl
        ({ pkgs, ... }: {
          services.iana-angl = {
            enable = true;
            package = inputs.iana-angl.packages.${pkgs.system}.iana-angl;
            domain = "lessons.example.com";
          };
        })
      ];
    };
  };
}

The module enables nginx, serves the package as a static SPA, and falls back to index.html for client-side routes. Configure TLS, ACME, firewall ports, and reverse-proxy policy separately in the consuming system.