Commit d82c02153785

Vincent Demeester <vincent@sbr.pm>
2018-11-01 17:33:33
profiles: add cloud.google profile
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 0ef1fcb
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 ];
+  };
+}
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
devops.nix
@@ -2,8 +2,6 @@
 
 {
   home.packages = with pkgs; [
-    google-cloud-sdk
     packer
-    spice_gtk
   ];
 }
shikoku.nix
@@ -16,6 +16,7 @@
     python.enable = true;
     rust.enable = true;
   };
+  profiles.cloud.google.enable = true;
   profiles.containers = {
     enable = true;
     docker = true;
wakasu.nix
@@ -15,6 +15,7 @@
     python.enable = true;
     rust.enable = true;
   };
+  profiles.cloud.google.enable = true;
   profiles.containers = {
     enable = true;
     docker = true;