2937d257d601b40de2437a51ebc3c7b61b40f679
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.
Description
Languages
Rust
80.4%
CSS
14%
Nix
4.9%
HTML
0.7%