pantheon/modules/docs
Mohammad Rafiq 7a74f1d6c0
refactor(text): extract text helper to rrvsh/text.nix
This commit adds the rrvsh/text.nix flake to manage text generation.
It also removes the old text generation helpers module and updates the
README and flake.nix files to use the new flake.
2025-07-07 09:51:53 +08:00
..
cheatsheet.nix feat(docs): add cheatsheet 2025-07-07 09:51:43 +08:00
readme.nix refactor(text): extract text helper to rrvsh/text.nix 2025-07-07 09:51:53 +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.
    '';
  };

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