forked from katzen-cafe/katzen-cafe
Added modded mc servers and stuff
This commit is contained in:
parent
88c4b331a5
commit
b5fcea3c75
5 changed files with 193 additions and 1 deletions
38
modules/modded-mc.nix
Normal file
38
modules/modded-mc.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.mms.module ];
|
||||
|
||||
environment.systemPackages = with pkgs; [ temurin-jre-bin ];
|
||||
|
||||
services.modded-minecraft-servers = {
|
||||
eula = true;
|
||||
|
||||
# The name will be used for the state folder and system user.
|
||||
# In this case, the folder is `/var/lib/mc-e2es`
|
||||
# and the user `mc-e2es`.
|
||||
instances = {
|
||||
"catpile-v1" = {
|
||||
enable = true;
|
||||
|
||||
jvmPackage = pkgs.temurin-jre-bin;
|
||||
|
||||
# Keys that can access the state of this instance (read/write!) over an rsync module
|
||||
# Leave empty to disable
|
||||
rsyncSSHKeys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDu9lhNUjovmaeUczUv18GVoSp8Xo8Izi+HSxC7Go3YOTkaijMB4fCWIIQ/MZkKd7BG0OLPwbNSFrP7XrLxyXbMfNNoOBHTtQv85HwRP7XcvsYomHrdtcU3Nf49/MSXA4z42FqzUF114+D0czJz+Nxer+MbEHqAKZRjNuHOizKv8Rqq2hkwTL/Oi3fQxNaj/rHKth0/8BqcUixxofY/e48E+3SAEUJhb/h4m8nyvecKtyfAdxvPg3ZVi+vWZTeY8aoMRliw6kho59tBzumiXsRve0FyFbGx/t/T3zR2dxBZ63LSePhiTO3XdE3spSq/gzsZRNkxxoSWHiW6xrXQAgoyBGPp0ISw3ljtDgTgaJ5JS9JYRKpkfHDlsBKuLpeoD4i6Ts2Z+0dyFnVyBs64bwY7PyqRtS9l/EM/f2VxfsndWMoCuGFCZSS2WbONirqp6e7czxCQ2iqShYKzfupbTf8eYV1i4+VTJE1Qs0oFbmcwZDJbHqaUZn2aeS7fW9pYrA0= jade@monosodium-glutamate-g"
|
||||
];
|
||||
|
||||
serverConfig = {
|
||||
# Port must be unique
|
||||
server-port = 25566;
|
||||
motd = "Be excellent to eachother";
|
||||
|
||||
white-list = true;
|
||||
spawn-protection = 0;
|
||||
max-tick-time = 5 * 60 * 1000;
|
||||
allow-flight = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue