Coricamu

screenshot of Coricamu

Static website generator for Nix

Overview:

Coricamu is a tool that allows users to generate a static site using the Nix package manager. The generated site is a static site, which means it does not run any code on the server side. However, it can still utilize JavaScript on the client side for interactivity. This tool assumes prior experience with the Nix language and website development.

Features:

  • Module System: Coricamu uses the module system for website configuration, similar to how NixOS machines are configured. Users can use imports, define their own options, and utilize functions like mkIf, mkMerge, and mkForce.
  • Flake Integration: Coricamu requires the use of Flakes for dependency management. Users need to create a flake.nix file before writing a module.
  • Flexible File Management: Users can add any files directly to their site by including them in the files attribute set. Additionally, the tool supports automatic conversion of many bitmap file types to the modern webp format.

Summary:

Coricamu is a powerful tool for generating static sites using the Nix package manager. It provides features such as flexible file management, support for different body formats, and the ability to define a header and footer for consistent page layout. By following the installation guide, users can easily create their own static sites with Coricamu.