commit 505db483debec5f105fee1e556a11d862d8ce150
parent 61b563c8cc1e1a412ecbdc06e74e988cdd1f4598
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 1 Nov 2018 16:30:47 +0100
profiles.dev.java : add an idea option…
… to install or not intellij
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/hokkaido.nix b/hokkaido.nix
@@ -11,6 +11,7 @@
profiles.dev = {
go.enable = true;
js.enable = true;
+ java.enable = true;
python.enable = true;
rust.enable = true;
};
diff --git a/modules/profiles/dev.java.nix b/modules/profiles/dev.java.nix
@@ -12,13 +12,23 @@ in
description = "Enable java development profile";
type = types.bool;
};
+ idea = mkOption {
+ default = false;
+ description = "Install intellij idea";
+ type = types.bool;
+ };
};
};
- config = mkIf cfg.enable {
- profiles.dev.enable = true;
- home.packages = with pkgs; [
- jdk
- gradle
- ];
- };
+ config = mkIf cfg.enable (mkMerge [
+ {
+ profiles.dev.enable = true;
+ home.packages = with pkgs; [
+ jdk
+ gradle
+ ];
+ }
+ (mkIf cfg.idea {
+ home.packages = with pkgs; [ jetbrains.idea-ultimate ];
+ })
+ ]);
}
diff --git a/shikoku.nix b/shikoku.nix
@@ -11,7 +11,7 @@
profiles.dev = {
go.enable = true;
haskell.enable = true;
- java.enable = true;
+ java = { enable = true; idea = true; };
js.enable = true;
python.enable = true;
rust.enable = true;
@@ -25,7 +25,6 @@
home.packages = with pkgs; [
google-chrome
obs-studio # screencast
- jetbrains.idea-ultimate
mattermost-desktop
slack
virtmanager
diff --git a/wakasu.nix b/wakasu.nix
@@ -9,7 +9,7 @@
profiles.laptop.enable = true;
profiles.dev = {
go.enable = true;
- java.enable = true;
+ java = { enable = true; idea = true; };
js.enable = true;
haskell.enable = true;
python.enable = true;
@@ -24,7 +24,6 @@
mattermost-desktop
slack
virtmanager
- jetbrains.idea-ultimate
];
services.shairport-sync.enable = true;
}