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 + ''; + }; + }; +}