feat: add files module, text helper, and update readme generation

This commit is contained in:
Mohammad Rafiq 2025-07-03 02:08:54 +08:00
parent a19ede01a2
commit 295f5daba9
No known key found for this signature in database
7 changed files with 79 additions and 25 deletions

View file

@ -1,21 +1,20 @@
{ config, ... }:
{ config, lib, ... }:
let
inherit (lib) singleton;
in
{
# text.readme = {
#
# };
text.readme.order = [
"generated-files"
"helpers"
];
text.readme.parts.helpers.order = [ "text-helper" ];
perSystem =
{ pkgs, ... }:
{
files.files = [
{
path_ = "README.md";
drv =
pkgs.writeText "README.md" # config.text.readme
''
test README
'';
}
];
files.files = singleton {
path_ = "README.md";
drv = pkgs.writeText "README.md" config.text.readme;
};
};
}