commit d82c0215378568bb28a5e4e7e8942e4e88e76d1c
parent 0ef1fcba775159dc24cee15f018e8cdf7a40aaf7
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 1 Nov 2018 17:33:33 +0100
profiles: add cloud.google profile
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
5 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/devops.nix b/devops.nix
@@ -2,8 +2,6 @@
{
home.packages = with pkgs; [
- google-cloud-sdk
packer
- spice_gtk
];
}
diff --git a/modules/module-list.nix b/modules/module-list.nix
@@ -16,6 +16,7 @@
./profiles/emacs.nix
./profiles/fish.nix
./profiles/gaming.nix
+ ./profiles/gcloud.nix
./profiles/git.nix
./profiles/i3.nix
./profiles/kubernetes.nix
diff --git a/modules/profiles/gcloud.nix b/modules/profiles/gcloud.nix
@@ -0,0 +1,20 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ cfg = config.profiles.cloud.google;
+in
+{
+ options = {
+ profiles.cloud.google = {
+ enable = mkOption {
+ default = false;
+ description = "Enable google cloud profile";
+ type = types.bool;
+ };
+ };
+ };
+ config = mkIf cfg.enable {
+ home.packages = with pkgs; [ google-cloud-sdk gcsfuse google-compute-engine ];
+ };
+}
diff --git a/shikoku.nix b/shikoku.nix
@@ -16,6 +16,7 @@
python.enable = true;
rust.enable = true;
};
+ profiles.cloud.google.enable = true;
profiles.containers = {
enable = true;
docker = true;
diff --git a/wakasu.nix b/wakasu.nix
@@ -15,6 +15,7 @@
python.enable = true;
rust.enable = true;
};
+ profiles.cloud.google.enable = true;
profiles.containers = {
enable = true;
docker = true;