Infini-DL360/minecraft: init

This commit is contained in:
Infinidoge 2025-05-08 14:02:25 -04:00
parent 735e3231ed
commit ce14174483
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 15 additions and 0 deletions

View file

@ -22,6 +22,7 @@
./immich.nix ./immich.nix
./jellyfin.nix ./jellyfin.nix
./jupyter.nix ./jupyter.nix
./minecraft.nix
./postgresql.nix ./postgresql.nix
./privoxy.nix ./privoxy.nix
./radicale.nix ./radicale.nix

View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
services.minecraft-servers.servers.hackcraft = {
enable = true;
package = pkgs.writeShellApplication {
name = "mincraft-server";
runtimeInputs = with pkgs; [ openjdk21 ];
text = ''
java @user_jvm_args.txt "$@" @libraries/net/minecraftforge/forge/1.20.1-47.4.0/unix_args.txt nogui
'';
};
};
}