new mc server and config structuring
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 32s

This commit is contained in:
Satria 2026-07-05 11:11:32 +08:00
commit 5ba636a096
5 changed files with 204 additions and 148 deletions

View file

@ -0,0 +1,17 @@
{ inputs, ... }: {
imports = [
./mc0-vanilla-plus.nix
inputs.mc.nixosModules.minecraft-servers
];
nixpkgs.overlays = [ inputs.mc.overlay ];
powerManagement.cpuFreqGovernor = "powersave"; # performance governor causes overheating and thermal throttling, works fine with powesave
boot.kernel.sysctl."vm.swappiness" = 10; # reduce swap usage and keep memory performance smooth
services.minecraft-servers = {
enable = true;
eula = true;
managementSystem.systemd-socket.enable = true;
# ^^^ https://github.com/Infinidoge/nix-minecraft/issues/119
};
}