2022-03-25 22:32:30 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2022-06-18 03:44:51 +03:00
|
|
|
links.mc-num = {};
|
2022-03-25 22:32:30 +02:00
|
|
|
services.modded-minecraft-servers.instances.num = {
|
|
|
|
enable = true;
|
|
|
|
rsyncSSHKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL5C7mC5S2gM0K6x0L/jNwAeQYbFSzs16Q73lONUlIkL" # max@TITAN
|
|
|
|
];
|
2022-05-27 17:00:15 +03:00
|
|
|
jvmPackage = pkgs.jre;
|
2022-03-25 22:32:30 +02:00
|
|
|
jvmInitialAllocation = "2G";
|
|
|
|
jvmMaxAllocation = "8G";
|
|
|
|
serverConfig = {
|
2022-06-18 03:44:51 +03:00
|
|
|
server-port = config.links.mc-num.port;
|
2022-03-25 22:32:30 +02:00
|
|
|
motd = "Welcome to num's minecraft server";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|