mirror of
https://git.sr.ht/~goorzhel/turboprop
synced 2024-12-15 17:50:52 +00:00
7ffed36d0b
Otherwise the template will be broken out of the box, as AT3 is impossible to build without network access: https://github.com/farcaller/nixhelm/issues/18
45 lines
1,010 B
Nix
45 lines
1,010 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixhelm = {
|
|
url = "github:farcaller/nixhelm";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
turboprop = {
|
|
url = "sourcehut:~goorzhel/turboprop";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.nixhelm.follows = "nixhelm";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
nixhelm,
|
|
turboprop,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
turbo = turboprop.lib.${system};
|
|
in {
|
|
packages.default = let
|
|
pname = "my-k8s-flake";
|
|
in
|
|
turbo.mkDerivation {
|
|
charts = turbo.mkChartsWithNixhelm ./charts;
|
|
} {
|
|
inherit pname;
|
|
version = "rolling";
|
|
src = builtins.path {
|
|
path = ./.;
|
|
name = pname;
|
|
};
|
|
|
|
serviceRoot = ./services;
|
|
nsMetadata = {};
|
|
};
|
|
}
|
|
);
|
|
}
|