kube-apply
This commit is contained in:
parent
07d8ed6fc4
commit
e33d45bb13
17
flake.nix
17
flake.nix
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue