chore: Cleanup old nix code and add helmfile experiments
This commit is contained in:
@@ -1,25 +1,34 @@
|
||||
let
|
||||
sources = import ./nix;
|
||||
sources = import ./npins;
|
||||
system = builtins.currentSystem;
|
||||
pkgs = import sources.nixpkgs {
|
||||
inherit system;
|
||||
config = { };
|
||||
overlays = [ ];
|
||||
overlays = [ (import "${sources.gomod2nix}/overlay.nix") ];
|
||||
};
|
||||
nixpkgs = sources.nixpkgs;
|
||||
nixidy = import sources.nixidy { inherit nixpkgs; };
|
||||
helmfile-nix = import sources.helmfile-nix { inherit pkgs; };
|
||||
helmWrap =
|
||||
with pkgs;
|
||||
wrapHelm kubernetes-helm {
|
||||
plugins = with kubernetes-helmPlugins; [
|
||||
helm-diff
|
||||
helm-git
|
||||
];
|
||||
};
|
||||
helmfileWrap = pkgs.helmfile-wrapped.override { inherit (helmWrap) pluginsDir; };
|
||||
in
|
||||
{
|
||||
shell = pkgs.mkShellNoCC {
|
||||
name = "clstr";
|
||||
nativeBuildInputs = with pkgs; [
|
||||
helmfile
|
||||
nixidy.nixidy
|
||||
npins
|
||||
nixfmt-rfc-style
|
||||
just
|
||||
fzf
|
||||
];
|
||||
NPINS_DIRECTORY = "nix";
|
||||
};
|
||||
pkgs.mkShellNoCC {
|
||||
name = "clstr";
|
||||
|
||||
packages = with pkgs; [
|
||||
npins
|
||||
nix-converter
|
||||
|
||||
# helm
|
||||
helmWrap
|
||||
helmfileWrap
|
||||
helmfile-nix
|
||||
];
|
||||
|
||||
CLUSTER_NAME = "oceanbox";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user