nix-flake/modules/system/homelab/mc/default.nix
satr14 543b99ffe2
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 18s
activate second server
2026-07-05 10:40:43 +07:00

18 lines
No EOL
614 B
Nix

{ inputs, ... }: {
imports = [
./mc0-vanilla-plus.nix
./mc1-pure-vanilla.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
};
}