new mc server and config structuring
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 32s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 32s
This commit is contained in:
parent
806f8d01de
commit
5ba636a096
5 changed files with 204 additions and 148 deletions
17
modules/system/homelab/mc/default.nix
Normal file
17
modules/system/homelab/mc/default.nix
Normal 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
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue