kube-apply

This commit is contained in:
Gabriel Simmer 2023-11-30 12:09:51 +00:00
parent 07d8ed6fc4
commit e33d45bb13
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -37,9 +37,9 @@
set +o allexport
'';
nativeBuildInputs = [
jq opentofu kubectl awscli2
nodePackages.yaml-language-server
k9s terraform-ls kubernetes-helm nil
jq opentofu kubectl
k9s terraform-ls kubernetes-helm
nil
];
buildInputs = [ ];
};
@ -64,6 +64,12 @@
};
apps = nixinate.nixinate.x86_64-linux self // {
x86_64-linux = {
kube-apply = {
type = "app";
program = toString (pkgs.writers.writeBash "diff" ''
${pkgs.kubectl}/bin/kubectl apply -f ${self.packages.x86_64-linux.kubernetes}
'');
};
kube-diff = {
type = "app";
program = toString (pkgs.writers.writeBash "diff" ''
@ -122,11 +128,6 @@
# use it as an overlay
nixpkgs.overlays = [ nixpkgs-wayland.overlay ];
# or, pull specific packages (built against inputs.nixpkgs, usually `nixos-unstable`)
environment.systemPackages = [
nixpkgs-wayland.packages.x86_64-linux.waybar
];
};
}
)