VEGAS/minecraft: add instance for num

This commit is contained in:
Max Headroom 2022-03-25 21:32:30 +01:00
parent 8eec1cf462
commit 6555133984
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{
services.modded-minecraft-servers.eula = true;
imports = [
./num.nix
];
}

View file

@ -0,0 +1,17 @@
{ config, pkgs, ... }:
{
reservePortsFor = [ "mc-num" ];
services.modded-minecraft-servers.instances.num = {
enable = true;
rsyncSSHKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL5C7mC5S2gM0K6x0L/jNwAeQYbFSzs16Q73lONUlIkL" # max@TITAN
];
jvmPackage = pkgs.jdk17;
jvmInitialAllocation = "2G";
jvmMaxAllocation = "8G";
serverConfig = {
server-port = config.ports.mc-num;
motd = "Welcome to num's minecraft server";
};
};
}

View file

@ -13,6 +13,7 @@
./modules/redis
./modules/virtualisation
inputs.agenix.nixosModules.age
inputs.mms.module
# Services
./services/api
@ -29,6 +30,7 @@
./services/nfs
./services/mail
./services/matrix
./services/minecraft
./services/nix/binary-cache.nix
./services/nix/nar-serve.nix
./services/object-storage