Google Cloud SDK: Difference between revisions
Appearance
imported>Hypnosis2839 m →Components: fix syntax |
m Add category cloud |
||
Line 24: | Line 24: | ||
<ref name="discourseWithExtraComponents">[https://discourse.nixos.org/t/google-cloud-sdk-and-installing-extra-components/10319/9 discourse topic] </ref> | <ref name="discourseWithExtraComponents">[https://discourse.nixos.org/t/google-cloud-sdk-and-installing-extra-components/10319/9 discourse topic] </ref> | ||
</references> | </references> | ||
[[Category:Cloud]] |
Latest revision as of 17:46, 18 May 2025
It it possible to install gcloud and its components using nix.
There are two major packages to do so: google-cloud-sdk
and google-cloud-sdk-gce
, with that later being a version that is optimised to run on Google Cloud itself.
Components
Since the installation of gcloud
is managed by nix, it won't be possible to install them using gcloud components install ...
. Use this snippet to create a pseudo-package with your components in them [1]:
let
gdk = pkgs.google-cloud-sdk.withExtraComponents( with pkgs.google-cloud-sdk.components; [
gke-gcloud-auth-plugin
]);
in
{
packages = [
gdk
];
}