shells: add environment for cloud admins

This commit is contained in:
Gabriel Arazas 2022-11-11 16:32:10 +08:00
parent bc2e4ccf64
commit 5643321759
2 changed files with 28 additions and 0 deletions

27
shells/cloud.nix Normal file
View File

@ -0,0 +1,27 @@
# All-encompassing environment for cloud platform management. I'm using only
# one so far but apparently these providers have some tool to enable easy
# access and usage for their platform.
#
# The reason why we have these with a light sandbox is for more sophiscated
# tools like in Google Cloud SDK.
{ buildFHSUserEnv }:
(buildFHSUserEnv {
name = "cloud-admin-env";
targetPkgs = pkgs: (with pkgs; [
awscli2
azure-cli
(google-cloud-sdk.withExtraComponents
(with google-cloud-sdk.components; [
gke-gcloud-auth-plugin
gcloud-man-pages
cloud-run-proxy
])
)
kubectl
hcloud
linode-cli
vultr-cli
python3
]);
}).env

View File

@ -1,6 +1,7 @@
{ pkgs ? import <nixpkgs> { } }: { pkgs ? import <nixpkgs> { } }:
with pkgs; { with pkgs; {
cloud = callPackage ./cloud.nix { };
flatpak = callPackage ./flatpak.nix { }; flatpak = callPackage ./flatpak.nix { };
gnu = callPackage ./gnu.nix { }; gnu = callPackage ./gnu.nix { };
gnome = callPackage ./gnome.nix { }; gnome = callPackage ./gnome.nix { };