mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
59 lines
1.5 KiB
Nix
59 lines
1.5 KiB
Nix
{
|
|
description = "Kubernetes resource builder using nix";
|
|
|
|
inputs = {
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
devshell-flake.url = "github:numtide/devshell";
|
|
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, devshell-flake, flake-compat }:
|
|
{ modules = import ./modules; }
|
|
//
|
|
(flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
self.overlay
|
|
devshell-flake.overlay
|
|
];
|
|
config = {
|
|
allowUnsupportedSystem = true;
|
|
};
|
|
};
|
|
in
|
|
rec {
|
|
devShell = with pkgs; devshell.mkShell
|
|
{
|
|
imports = [
|
|
(devshell.importTOML ./devshell.toml)
|
|
];
|
|
};
|
|
|
|
packages = flake-utils.lib.flattenTree {
|
|
inherit (pkgs)
|
|
kubenix
|
|
kubernetes
|
|
kubectl
|
|
;
|
|
};
|
|
|
|
hydraJobs = {
|
|
inherit packages;
|
|
};
|
|
}
|
|
)
|
|
) //
|
|
{
|
|
overlay = final: prev: {
|
|
kubenix = prev.callPackage ./kubenix.nix { };
|
|
# up to date versions of their nixpkgs equivalents
|
|
kubernetes = prev.callPackage ./pkgs/applications/networking/cluster/kubernetes
|
|
{ };
|
|
kubectl = prev.callPackage ./pkgs/applications/networking/cluster/kubectl { };
|
|
};
|
|
};
|
|
}
|