depot/hosts/VEGAS/services/minecraft/num.nix

18 lines
476 B
Nix
Raw Normal View History

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