VEGAS/minecraft: add instance 0fyy6ksf

This commit is contained in:
Max Headroom 2022-10-02 18:19:54 +02:00
parent 65ea9d7e55
commit 54a362965b
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ 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";
};
};
systemd.services."mc-${custId}".serviceConfig = {
CPUQuota = "200%";
MemoryHigh = "4.2G";
MemoryMax = "4.3G";
MemorySwapMax = "1G";
};
}

View file

@ -2,5 +2,6 @@
services.modded-minecraft-servers.eula = true;
imports = [
./num.nix
./customer-0fyy6ksf.nix
];
}