flakes/minecraft/flake.nix
2024-11-10 20:22:03 +01:00

28 lines
616 B
Nix

{
description = "Minecraft flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-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; [
# minecraft
prismlauncher
jdk22_headless # Minecraft 1.21
steam-run
];
};
}
);
}