2022-07-31 23:53:59 +03:00
|
|
|
{ config, inputs, pkgs, ... }:
|
2022-03-25 22:32:30 +02:00
|
|
|
{
|
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-07-31 23:53:59 +03:00
|
|
|
jvmPackage = inputs.self.packages.${pkgs.system}.jre17_standard;
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|