VEGAS/minecraft: add instance for num
This commit is contained in:
parent
8eec1cf462
commit
6555133984
3 changed files with 25 additions and 0 deletions
6
hosts/VEGAS/services/minecraft/default.nix
Normal file
6
hosts/VEGAS/services/minecraft/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.modded-minecraft-servers.eula = true;
|
||||
imports = [
|
||||
./num.nix
|
||||
];
|
||||
}
|
17
hosts/VEGAS/services/minecraft/num.nix
Normal file
17
hosts/VEGAS/services/minecraft/num.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue