Initial import

This commit is contained in:
Robert Helgesson 2017-01-07 19:16:26 +01:00
parent e4c63eb66a
commit d7d02c3ce8
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
26 changed files with 1749 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.eclipse;
in
{
options = {
programs.eclipse = {
enable = mkEnableOption "Eclipse";
jvmArgs = mkOption {
type = types.listOf types.str;
default = [];
description = "JVM arguments to use for the Eclipse process.";
};
plugins = mkOption {
type = types.listOf types.package;
default = [];
description = "Plugins that should be added to Eclipse.";
};
};
};
config = mkIf cfg.enable {
home.packages = [
(pkgs.eclipses.eclipseWithPlugins {
eclipse = pkgs.eclipses.eclipse-platform;
jvmArgs = cfg.jvmArgs;
plugins = cfg.plugins;
})
];
};
}