1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-15 17:50:52 +00:00
turboprop/templates/default/flake.nix
Antonio Gurgel 0fb8e4d18b Don't ship nixhelm with Turboprop
Nixhelm updates daily. Why would I ship that with my flake?
This is one area where the user really must BYOB.
2023-12-06 22:59:39 -08:00

44 lines
969 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";
};
};
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 = nixhelm.chartsDerivations.${system};
} {
inherit pname;
version = "rolling";
src = builtins.path {
path = ./.;
name = pname;
};
serviceRoot = ./services;
nsMetadata = {};
};
}
);
}