mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
53 lines
1.3 KiB
Nix
53 lines
1.3 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";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, devshell-flake }:
|
|
|
|
(flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
self.overlay
|
|
devshell-flake.overlay
|
|
];
|
|
config = { allowUnsupportedSystem = true; };
|
|
};
|
|
|
|
in
|
|
{
|
|
|
|
devShell = with pkgs; devshell.mkShell
|
|
{ imports = [ (devshell.importTOML ./devshell.toml) ]; };
|
|
|
|
packages = flake-utils.lib.flattenTree {
|
|
inherit (pkgs) kubernetes kubectl;
|
|
};
|
|
|
|
defaultPackage = pkgs.kubenix;
|
|
|
|
jobs = import ./jobs { inherit pkgs; };
|
|
|
|
}
|
|
))
|
|
|
|
//
|
|
|
|
{
|
|
modules = import ./src/modules;
|
|
overlay = final: prev: {
|
|
kubenix = prev.callPackage ./src/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 { };
|
|
};
|
|
};
|
|
}
|