2022-10-02 19:19:54 +03:00
|
|
|
{ config, inputs, pkgs, ... }:
|
|
|
|
let
|
|
|
|
custId = "0fyy6ksf";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
links."mc-${custId}" = {};
|
|
|
|
links."mc-rcon-${custId}" = {};
|
|
|
|
services.modded-minecraft-servers.instances."${custId}" = {
|
|
|
|
enable = true;
|
|
|
|
rsyncSSHKeys = [
|
|
|
|
"ssh-ed25519 dummyKey"
|
|
|
|
];
|
|
|
|
jvmPackage = inputs.self.packages.${pkgs.system}.jre17_standard;
|
|
|
|
jvmInitialAllocation = "2G";
|
|
|
|
jvmMaxAllocation = "4G";
|
|
|
|
serverConfig = {
|
|
|
|
server-port = config.links."mc-${custId}".port;
|
|
|
|
motd = "Hosted by Private Void";
|
|
|
|
enable-rcon = true;
|
|
|
|
rcon-port = config.links."mc-rcon-${custId}".port;
|
|
|
|
rcon-password = "manager";
|
2022-10-04 18:19:59 +03:00
|
|
|
allow-flight = true;
|
2022-10-02 19:19:54 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services."mc-${custId}".serviceConfig = {
|
|
|
|
CPUQuota = "200%";
|
|
|
|
MemoryHigh = "4.2G";
|
|
|
|
MemoryMax = "4.3G";
|
|
|
|
MemorySwapMax = "1G";
|
|
|
|
};
|
|
|
|
}
|