1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
turboprop/flake.nix
2023-11-26 23:41:14 -08:00

42 lines
1 KiB
Nix

{
description = "Kubernetes deployments flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
nix-kube-generators.url = "github:farcaller/nix-kube-generators";
nixhelm = {
url = "github:farcaller/nixhelm";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
self,
nixpkgs,
flake-utils,
nix-kube-generators,
nixhelm,
}: let
rake = import ./lib/rake.nix;
in
{
inherit rake;
charts = rake.leaves ./charts;
}
// flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
charts = nixhelm.chartsDerivations.${system};
kubelib = nix-kube-generators.lib {inherit pkgs;};
lib = import ./lib {inherit charts kubelib pkgs;};
in {
packages = rec {
default = lib;
flakeBuilders = import ./lib/flake-builders.nix {
inherit charts lib pkgs;
};
};
formatter = pkgs.alejandra;
});
}