1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
turboprop/templates/default/flake.nix
Antonio Gurgel 7ffed36d0b Use AT2 in template
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
2024-05-21 17:58:01 -07:00

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 = {};
};
}
);
}