fix libstdc++ not found
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 29s

This commit is contained in:
Satria 2026-06-21 14:07:28 +07:00
commit acaafb2124

View file

@ -1,4 +1,5 @@
{ inputs, lib, pkgs, ... }: let { inputs, lib, pkgs, ... }: let
name = "mc0-vanilla-plus";
production = true; production = true;
ram-allocation-mb = 12288; ram-allocation-mb = 12288;
rcon-pass = "howdy"; rcon-pass = "howdy";
@ -19,6 +20,10 @@ in {
"vm.swappiness" = 10; "vm.swappiness" = 10;
}; };
systemd.services."minecraft-server-${name}".environment = {
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
};
services.minecraft-servers = { services.minecraft-servers = {
enable = true; enable = true;
eula = true; eula = true;
@ -29,7 +34,7 @@ in {
# gamerules to disable: locator_bar, mob_explosion_drop_decay, (and possibly) reduced_debug_info, global_sound_events # gamerules to disable: locator_bar, mob_explosion_drop_decay, (and possibly) reduced_debug_info, global_sound_events
# gamerules to enable (temporarily): noend:disable_end # gamerules to enable (temporarily): noend:disable_end
servers.mc0-vanilla-plus = { servers.${name} = {
enable = true; enable = true;
autoStart = true; autoStart = true;
restart = "always"; restart = "always";
@ -45,7 +50,7 @@ in {
serverProperties = { serverProperties = {
server-port = 25565; server-port = 25565;
server-name = "Minecraft Server"; server-name = name;
motd = "§cCan't connect to server"; motd = "§cCan't connect to server";
log-ips = true; log-ips = true;
hide-online-players = true; hide-online-players = true;