pantheon/modules/docs
2025-07-07 09:51:43 +08:00
..
cheatsheet.nix feat(docs): add cheatsheet 2025-07-07 09:51:43 +08:00
readme.nix feat(readme): add headings and descriptions to text.readme 2025-07-07 09:51:43 +08:00

{ config, lib, ... }:
let
  inherit (lib) singleton;
in
{
  text.readme = {
    heading = "Pantheon";
    description = ''
      This flake serves as a monorepo for my systems (using IaC), dotfiles, and scripts.
    '';
    order = [
      "Generated Files"
      "helpers"
    ];
    parts.helpers = {
      heading = "Helpers";
      description = "The following are some helpers for the repo as a whole.";
      order = [ "Generating Text" ];
    };
  };

  perSystem =
    { pkgs, ... }:
    {
      files.files = singleton {
        path_ = "README.md";
        drv = pkgs.writeText "README.md" config.text.readme;
      };
    };
}