feat(shells): Test
This commit is contained in:
parent
b819c45b4c
commit
b4fd8f2dbf
5 changed files with 163 additions and 0 deletions
26
nixos/shells/java/default.nix
Normal file
26
nixos/shells/java/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "Java Flake";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
( system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
jdk8
|
||||
openjdk17
|
||||
|
||||
# You might want to use your own IDE.
|
||||
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ])
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue