Nixlets - like Helm Charts or Grafana Tanka but instead using Nix. https://nixlets.projects.tf
Find a file
2025-09-24 19:18:55 +02:00
docs docs: update nixmkdocs and small improvements 2025-09-24 19:18:55 +02:00
lib feat: add function to generate docs for nixlet values 2025-07-19 16:28:51 +02:00
nixlets fix: missing .url in nixlets flake 2025-02-15 17:41:10 +00:00
template feat: rewrite how nixlets work 2024-05-08 17:09:17 +00:00
.envrc chore: add basic template and lib 2024-03-06 10:23:25 +00:00
.gitignore chore: add basic template and lib 2024-03-06 10:23:25 +00:00
.gitlab-ci.yml ci: fix nix-gitlab-ci by specifying version 2025-07-19 16:27:45 +02:00
ci.nix chore: add initial docs setup 2025-04-27 16:03:23 +02:00
flake.lock docs: update nixmkdocs and small improvements 2025-09-24 19:18:55 +02:00
flake.nix docs: update nixmkdocs and small improvements 2025-09-24 19:18:55 +02:00
README.md style(README): format README.md 2024-11-24 19:08:05 +01:00

Nixlets

This repository contains utilities for creating Nixlets and a collection of Nixlets.
Nixlets are kinda like Helm Charts, but they are defined using Kubenix and the Nix language.

One can load Nixlets either via Nix Flakes or by fetching a tarball

Usage

Creating Nixlets

Nixlets need a default.nix and a values.nix (a nixlet.nix containing the metadata is also recommended).
Check out the existing nixlets to understand how they work.
There is also a bare-bones template.

Using/rendering Nixlets

To render nixlets you only need to import the nixlets-lib:

{
  inputs.nixlet-lib.url = "gitlab:TECHNOFAB/nixlets?dir=lib";
}

Nixlets stored in the Gitlab Package Registry

(nixlet-lib.fetchNixletFromGitlab {
  project = "TECHNOFAB/nixlets";
  name = "<nixlet>";
  version = "<version>";
  sha256 = "<sha>";
}).render {
  inherit system;
  # values = {};
  # project = "";
  # overrides = ({...}: {});
}

Nixlets fetchable from arbitrary URLs

(nixlet-lib.fetchNixlet "<URL>" "<sha>").render {
  # ...
}

Metadata

Metadata of the Nixlets can also easily be accessed if needed:

(<some nixlet>).description # version, name, etc.