nixos-config/modules/dev/java.nix
2020-12-29 22:32:59 +08:00

23 lines
493 B
Nix
Executable File

# Java is a rice variant, a coffee blend, an island, and a programming language.
# It sure is a flexible thing.
{ config, options, lib, pkgs, ... }:
with lib;
let cfg = config.modules.dev.java;
in {
options.modules.dev.java = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
my.packages = with pkgs; [
jdk # The Java Development Kit.
jre # The Java Runtime Environment for running Java apps.
];
};
}