Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.14 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.14 KB

🛠 Status: Early experimental phase

This project is very much a work in progress. What you see here is only an early preview of the project.

Part one: nix openfaas tools

Build OpenFaas function images with Nix.

{pkgs, ...}:
let
    inherit (pkgs.pkgsStatic) figlet;
in
pkgs.ofTools.buildOfImage {
    name = "figlet";
    tag = "latest";

    watchdog = "of-watchdog";
    watchdogMode = "serializing";

    fprocess = "${figlet}/bin/figlet";
}

This example recreates the figlet image from the openfaas store but uses the of-watchdog instead of the classic-watchdog used in the original image.

Part two: CLI and NixOS modules

Not yet part of the repo but hope to publish it soon.

Instead of configuring functions in YAML files nix-faas will use the Nix language to build and configure functions (similar to what Arion does for docker-compose).

The nix-faas cli will be a wrapper around the faas-cli making it possible to deploy Nix defined function to any system running OpenFaaS.