- Install devbox
- In an empty directory run
devbox init
- Add this repo to your devbox project
devbox add github:mohsenari/gce#gce
- Go to your devbox shell:
devbox shell
- Check the list of installed components:
gcloud components list
You can customize this flake by editing the flake.nix file. But make sure to regenerate the flake.lock file by running
nix flake lock --extra-experimental-features nix-command --extra-experimental-features flakes
Editing the package name results in change in command to install this package. For example, if you change the package name to foo
, the command to install this package will become: devbox add github:mohsenari/gce#foo
To change the package name, edit the value gce = ...
in flake.nix file under packages = {
.
To install more google cloud sdk components, update the line in flake.nix similar to below:
packages = {
gce = pkgs.google-cloud-sdk.withExtraComponents ([pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin pkgs.google-cloud-sdk.components.terraform-tools]);
};
Note that the items in suare brackets are separated by space.