VEGAS/minecraft: add instance 0fyy6ksf
This commit is contained in:
parent
65ea9d7e55
commit
54a362965b
2 changed files with 31 additions and 0 deletions
30
hosts/VEGAS/services/minecraft/customer-0fyy6ksf.nix
Normal file
30
hosts/VEGAS/services/minecraft/customer-0fyy6ksf.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,5 +2,6 @@
|
||||||
services.modded-minecraft-servers.eula = true;
|
services.modded-minecraft-servers.eula = true;
|
||||||
imports = [
|
imports = [
|
||||||
./num.nix
|
./num.nix
|
||||||
|
./customer-0fyy6ksf.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue