nix-flake/modules/system/homelab/mc/default.nix
satr14 5ba636a096
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 32s
new mc server and config structuring
2026-07-05 11:11:32 +08:00

17 lines
No EOL
587 B
Nix

{ 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
};
}