mirror of
https://git.sr.ht/~goorzhel/turboprop
synced 2024-12-14 11:37:37 +00:00
0fb8e4d18b
Nixhelm updates daily. Why would I ship that with my flake? This is one area where the user really must BYOB.
44 lines
969 B
Nix
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 = {};
|
|
};
|
|
}
|
|
);
|
|
}
|