From ce1417448362e6b7c414ce42ad072f1c842e87a8 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 8 May 2025 14:02:25 -0400 Subject: [PATCH] Infini-DL360/minecraft: init --- hosts/Infini-DL360/default.nix | 1 + hosts/Infini-DL360/minecraft.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 hosts/Infini-DL360/minecraft.nix diff --git a/hosts/Infini-DL360/default.nix b/hosts/Infini-DL360/default.nix index c5cf8a5..7f0afd0 100644 --- a/hosts/Infini-DL360/default.nix +++ b/hosts/Infini-DL360/default.nix @@ -22,6 +22,7 @@ ./immich.nix ./jellyfin.nix ./jupyter.nix + ./minecraft.nix ./postgresql.nix ./privoxy.nix ./radicale.nix diff --git a/hosts/Infini-DL360/minecraft.nix b/hosts/Infini-DL360/minecraft.nix new file mode 100644 index 0000000..c73e1ea --- /dev/null +++ b/hosts/Infini-DL360/minecraft.nix @@ -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 + ''; + }; + }; +}