feat: add files module, text helper, and update readme generation
This commit is contained in:
parent
a19ede01a2
commit
295f5daba9
7 changed files with 79 additions and 25 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue