Compare commits
4 commits
c3abaad9a7
...
dd8b9a8ccf
| Author | SHA1 | Date | |
|---|---|---|---|
| dd8b9a8ccf | |||
| b406246fe1 | |||
| 70d62ed40b | |||
| 43291f452c |
3 changed files with 9 additions and 1 deletions
|
|
@ -70,6 +70,7 @@
|
|||
{ nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; }
|
||||
./modules/games/server/minecraft/default.nix
|
||||
./modules/games/server/minecraft/building.nix
|
||||
./modules/games/server/minecraft/neoforge-1.21.1.nix
|
||||
|
||||
./modules/services/ssh.nix
|
||||
./modules/network/vpn/tailscale.nix
|
||||
|
|
|
|||
|
|
@ -16,8 +16,14 @@
|
|||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.nvidia.acceptLicense = true;
|
||||
|
||||
services.minecraft-servers.servers.velocity.jvmOpts = lib.mkForce "-Xms128M -Xmx1024M -Dvelocity.max-known-packs=135";
|
||||
services.minecraft-servers.servers.velocity.symlinks."velocity.toml".value = {
|
||||
servers.try = [ "building" ];
|
||||
|
||||
forced-hosts = {
|
||||
"neoforge.miki.astolfo.org" = [ "neoforge-1-21-1" ];
|
||||
"building.miki.astolfo.org" = [ "building" ];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
TYPE = "NEOFORGE";
|
||||
VERSION = "1.21.1";
|
||||
EULA = "TRUE";
|
||||
MEMORY = "4G";
|
||||
INIT_MEMORY = "1G";
|
||||
MAX_MEMORY = "4G";
|
||||
SERVER_PORT = "30005";
|
||||
|
||||
UID = "992";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue