diff --git a/configuration/default.nix b/configuration/default.nix index 7e67c62..08b63a1 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -1,9 +1,4 @@ -{ - lib, - modulesPath, - flake-inputs, - ... -}: +{ modulesPath, flake-inputs, ... }: { imports = [ flake-inputs.disko.nixosModules.disko @@ -39,6 +34,13 @@ settings.trusted-users = [ "@wheel" ]; }; + # Optimization for minecraft servers, see: + # https://bugs.mojang.com/browse/MC-183518 + boot.kernelParams = [ + "highres=off" + "nohz=off" + ]; + networking = { usePredictableInterfaceNames = false; useDHCP = false; @@ -84,7 +86,7 @@ sops.defaultSopsFile = ../keys/production.yaml; # Remove some unneeded packages - environment.defaultPackages = lib.mkForce [ ]; + environment.defaultPackages = [ ]; system.stateVersion = "20.09"; }