initial commit

Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
s0me1newithhand7s 2026-03-29 04:20:33 +03:00
commit 0078a09395
10 changed files with 1859 additions and 0 deletions

10
lib/generators/helm.nix Normal file
View file

@ -0,0 +1,10 @@
_: pkgs: content:
pkgs.runCommand "helm-${content.name}" {} ''
mkdir -p $out/helm/${content.name}/templates
cp ${(pkgs.formats.yaml {}).generate "Chart.yaml" {
apiVersion = "v2";
name = content.name;
version = content.version or "0.1.0";
}} $out/helm/${content.name}/Chart.yaml
cp ${(pkgs.formats.yaml {}).generate "values.yaml" (content.values or {})} $out/helm/${content.name}/values.yaml
''