mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
24 lines
495 B
Nix
Executable File
24 lines
495 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.
|
|
];
|
|
};
|
|
}
|