feat: minecraft server (trust me 2)

This commit is contained in:
s-prechtl 2025-03-29 18:35:28 +01:00
parent 297fe67d61
commit 642c18a7b6
2 changed files with 58 additions and 56 deletions

View file

@ -38,41 +38,43 @@ in {
# This is mandatory, sorry. # This is mandatory, sorry.
eula = true; eula = true;
# The name will be used for the state folder and system user. instances = {
# In this case, the folder is `/var/lib/mc-aged` # The name will be used for the state folder and system user.
# and the user `mc-aged`. # In this case, the folder is `/var/lib/mc-aged`
aged = { # and the user `mc-aged`.
enable = true; aged = {
jvmMaxAllocation = "12G"; enable = true;
jvmInitialAllocation = "2G"; jvmMaxAllocation = "12G";
jvmOpts = concatStringsSep " " [ jvmInitialAllocation = "2G";
"-XX:+UseG1GC" jvmOpts = concatStringsSep " " [
"-XX:+ParallelRefProcEnabled" "-XX:+UseG1GC"
"-XX:MaxGCPauseMillis=200" "-XX:+ParallelRefProcEnabled"
"-XX:+UnlockExperimentalVMOptions" "-XX:MaxGCPauseMillis=200"
"-XX:+DisableExplicitGC" "-XX:+UnlockExperimentalVMOptions"
"-XX:+AlwaysPreTouch" "-XX:+DisableExplicitGC"
"-XX:G1NewSizePercent=40" "-XX:+AlwaysPreTouch"
"-XX:G1MaxNewSizePercent=50" "-XX:G1NewSizePercent=40"
"-XX:G1HeapRegionSize=16M" "-XX:G1MaxNewSizePercent=50"
"-XX:G1ReservePercent=15" "-XX:G1HeapRegionSize=16M"
"-XX:G1HeapWastePercent=5" "-XX:G1ReservePercent=15"
"-XX:G1MixedGCCountTarget=4" "-XX:G1HeapWastePercent=5"
"-XX:InitiatingHeapOccupancyPercent=20" "-XX:G1MixedGCCountTarget=4"
"-XX:G1MixedGCLiveThresholdPercent=90" "-XX:InitiatingHeapOccupancyPercent=20"
"-XX:G1RSetUpdatingPauseTimePercent=5" "-XX:G1MixedGCLiveThresholdPercent=90"
"-XX:SurvivorRatio=32" "-XX:G1RSetUpdatingPauseTimePercent=5"
"-XX:+PerfDisableSharedMem" "-XX:SurvivorRatio=32"
"-XX:MaxTenuringThreshold=1" "-XX:+PerfDisableSharedMem"
]; "-XX:MaxTenuringThreshold=1"
];
serverConfig = { serverConfig = {
server-port = 25566; server-port = 25566;
motd = "SIB24 Aged Server"; motd = "SIB24 Aged Server";
white-list = true; white-list = true;
spawn-protection = 0; spawn-protection = 0;
max-tick-time = 5 * 60 * 1000; max-tick-time = 5 * 60 * 1000;
allow-flight = true; allow-flight = true;
};
}; };
}; };
}; };

View file

@ -5,29 +5,29 @@
logo = { logo = {
type = "data"; type = "data";
source = '' source = ''
;dd, ;dd,
xdoo' xdoo'
0oooo' 0oooo'
,ko:.oo' . ,ko:.oo' .
xdo. .oo':od0 xdo. .oo':od0
0oo .oo';oook, 0oo .oo';oook,
'koc .oo';oo,odx 'koc .oo';oo,odx
oxo' .oo';oo oo0 oxo' .oo';oo oo0
Ooo .oo';oo ;oxc Ooo .oo';oo ;oxc
'Ool .oo';oo .od0 'Ool .oo';oo .od0
odo' .oo';oo cok, odo' .oo';oo cok,
0oo. .oo';oo 'odx 0oo. .oo';oo 'odx
.Ooc .oo';oo lo0. .Ooc .oo';oo lo0.
cxo, cl ;oo ;oxc cxo, cl ;oo ;oxc
kdo. 'XXXXXXXXXXX0K.;oo lXXXXXXXX0oodO kdo. 'XXXXXXXXXXX0K.;oo lXXXXXXXX0oodO
ooOd .oo,;oo ooOd .oo,;oo
loOx x0O 00o.oo';oo x0O d00, loOx x0O 00o.oo';oo x0O d00,
cok0 .oo';oo kOoo cok0 .oo';oo kOoo
:oxxxxxxxxxdoo',oo oxxxxoc :oxxxxxxxxxdoo',oo oxxxxoc
'ooooooooooo. ' :ooo, 'ooooooooooo. ' :ooo,
''; '';
}; };
modules = [ modules = [
"os" "os"
"host" "host"
"kernel" "kernel"