Skip to content

Commit

Permalink
feat(jvm): added new option: enableAndorid
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Dec 25, 2023
1 parent 53488b9 commit a8b4bb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/dev/jvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ in
enable = mkEnableOption ''
Enable JVM development enviroment
'';
enableAndroid = mkEnableOption ''
Enable Android development enviroment
'';
};
};

config = mkIf cfg.enable {
home-manager.users.wittano = {
home.packages = with pkgs; [ jetbrains.idea-ultimate android-studio graalvm-ce ];
home.packages = with pkgs; [ jetbrains.idea-ultimate graalvm-ce ] ++ (if cfg.enableAndroid then [ andorid-studio ] else [ ]);

programs.fish.shellAliases = mkIf (config.modules.shell.fish.enable) {
pjvm = "cd $HOME/projects/own/jvm";
Expand Down

0 comments on commit a8b4bb1

Please sign in to comment.