Infini-DL360/minecraft: init
This commit is contained in:
parent
735e3231ed
commit
ce14174483
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||||
|
|
14
hosts/Infini-DL360/minecraft.nix
Normal file
14
hosts/Infini-DL360/minecraft.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue