refactor: move docs/readme and docs/cheatsheet to flake-parts

This commit is contained in:
Mohammad Rafiq 2025-07-06 05:20:31 +08:00
parent 03a43150a1
commit 691b925148
No known key found for this signature in database
3 changed files with 0 additions and 7 deletions

View file

@ -0,0 +1,17 @@
{ lib, config, ... }:
let
inherit (lib) concatStringsSep singleton;
in
{
text.cheatsheet = concatStringsSep "\n" [
"`__curPos.file` will give the full evaluated path of the nix file it is called in. See [this issue](https://github.com/NixOS/nix/issues/5897#issuecomment-1012165198) for more information."
];
perSystem =
{ pkgs, ... }:
{
files.files = singleton {
path_ = "docs/cheatsheet.md";
drv = pkgs.writeText "cheatsheet.md" config.text.cheatsheet;
};
};
}

View file

@ -0,0 +1,21 @@
{ 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;
};
};
}