wip: getting there, slowly

This commit is contained in:
Jonas Juselius
2024-10-14 15:47:14 +02:00
parent 372c11c31e
commit ed26ad8af2
5 changed files with 72 additions and 52 deletions
+10 -3
View File
@@ -6,7 +6,8 @@
flake-utils.url = "github:numtide/flake-utils";
nixidy = {
url = "github:arnarg/nixidy";
# url = "github:juselius/nixidy";
url = "/home/jonas/src/OceanBox/nixidy";
inputs.nixpkgs.follows = "nixpkgs";
};
@@ -20,6 +21,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};
nix-kube-generators.url = "github:farcaller/nix-kube-generators";
yaml2nix = {
url = "github:euank/yaml2nix";
inputs.nixpkgs.follows = "nixpkgs";
@@ -36,17 +39,21 @@
nixhelm,
yaml2nix,
pre-commit-hooks,
nix-kube-generators,
}:
(flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
applib = import ./modules/lib.nix { inherit pkgs; };
kube = nix-kube-generators.lib { inherit pkgs; };
lib = {
apps = import ./modules/lib.nix { inherit pkgs kube;};
};
in
{
nixidyEnvs = nixidy.lib.mkEnvs {
inherit pkgs;
extraSpecialArgs = { inherit applib; };
extraSpecialArgs = { inherit lib; };
charts = nixhelm.chartsDerivations.${system};
modules = [
./modules