nix-dotfiles/services/mc.nix

24 lines
524 B
Nix
Raw Normal View History

2024-04-28 14:42:49 +02:00
{ config, pkgs, lib, ... }:
{
environment.systemPackages = [
pkgs.ollama
];
services.minecraft-server = {
enable = true;
eula = true;
2024-04-28 15:04:31 +02:00
#jvmOpts = "-Xms4092M -Xmx4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10";
2024-04-28 14:42:49 +02:00
2024-04-28 15:04:31 +02:00
# serverProperties = {
# server-port = 25500;
# difficulty = 3;
# gamemode = 1;
# max-players = 8;
# motd = "Adrian Minecraft server!";
# };
2024-04-28 14:42:49 +02:00
openFirewall = true;
};
}