mirror of
https://github.com/nix-community/home-manager
synced 2025-01-25 18:35:01 +01:00
parent
a3cb63265d
commit
561b3d5650
1 changed files with 11 additions and 1 deletions
|
@ -13,6 +13,16 @@ in {
|
||||||
programs.eclipse = {
|
programs.eclipse = {
|
||||||
enable = mkEnableOption "Eclipse";
|
enable = mkEnableOption "Eclipse";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.eclipses.eclipse-platform;
|
||||||
|
defaultText = literalExample "pkgs.eclipses.eclipse-platform";
|
||||||
|
example = literalExample "pkgs.eclipses.eclipse-java";
|
||||||
|
description = ''
|
||||||
|
The Eclipse package to install.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
enableLombok = mkOption {
|
enableLombok = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -40,7 +50,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.eclipses.eclipseWithPlugins {
|
(pkgs.eclipses.eclipseWithPlugins {
|
||||||
eclipse = pkgs.eclipses.eclipse-platform;
|
eclipse = cfg.package;
|
||||||
jvmArgs = cfg.jvmArgs ++ optional cfg.enableLombok
|
jvmArgs = cfg.jvmArgs ++ optional cfg.enableLombok
|
||||||
"-javaagent:${pkgs.lombok}/share/java/lombok.jar";
|
"-javaagent:${pkgs.lombok}/share/java/lombok.jar";
|
||||||
plugins = cfg.plugins;
|
plugins = cfg.plugins;
|
||||||
|
|
Loading…
Add table
Reference in a new issue