diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 7602805..177c349 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -67,6 +67,7 @@ ./roles/tekton ./roles/gnuplot ./roles/sops + ./roles/gcloud ]; nix.settings.experimental-features = [ diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index ef0ce71..f858002 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -52,6 +52,7 @@ me.emacs_flavor = "full"; me.firefox.enable = true; me.flux.enable = true; + me.gcloud.enable = true; me.git.config = ../../roles/git/files/gitconfig_home; me.gnuplot.enable = true; me.gpg.enable = true; diff --git a/nix/configuration/roles/gcloud/default.nix b/nix/configuration/roles/gcloud/default.nix new file mode 100644 index 0000000..aa7a30b --- /dev/null +++ b/nix/configuration/roles/gcloud/default.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + gcloud.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install gcloud."; + }; + }; + + config = lib.mkIf config.me.gcloud.enable ( + lib.mkMerge [ + { + environment.systemPackages = with pkgs; [ + google-cloud-sdk + ]; + } + ] + ); +}