minecraft
This commit is contained in:
parent
64fce34d5a
commit
e801865bf8
4 changed files with 95 additions and 15 deletions
|
@ -2,7 +2,7 @@
|
|||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
|
@ -21,8 +21,13 @@
|
|||
|
||||
environment.noXlibs = lib.mkForce false;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ config.services.minecraft-server.serverProperties."rcon.port"];
|
||||
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
package = pkgs.minecraftServers.purpur_1_18_2;
|
||||
jvmOpts = "--add-modules=jdk.incubator.vector -Xmx2048M -Xms2048M";
|
||||
|
||||
declarative = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
|
@ -30,12 +35,14 @@
|
|||
server-port = 25565;
|
||||
motd = "blahaj minecraft server!";
|
||||
white-list = true;
|
||||
enable-rcon = true;
|
||||
"timings.enabled" = false;
|
||||
};
|
||||
whitelist = {
|
||||
"0x76" = "5513404a-81a2-4c84-b952-18661b1803e7";
|
||||
red_shifts = "e0afdee5-e776-49a9-a0cd-c8753faf4255";
|
||||
iampilot = "4055515e-0567-4610-972e-8e530a5a9ccb";
|
||||
};
|
||||
|
||||
package = pkgs.papermc;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue