diff --git a/m/fox/configuration.nix b/m/fox/configuration.nix index ea793e76..3fb9010e 100644 --- a/m/fox/configuration.nix +++ b/m/fox/configuration.nix @@ -14,7 +14,7 @@ swapDevices = lib.mkForce []; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.kernelModules = [ "kvm-amd" ]; + boot.kernelModules = [ "kvm-amd" "amd_uncore" ]; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkForce false; @@ -22,6 +22,14 @@ # Use performance for benchmarks powerManagement.cpuFreqGovernor = "performance"; + # Disable NUMA balancing + boot.kernel.sysctl."kernel.numa_balancing" = 0; + + # Expose kernel addresses + boot.kernel.sysctl."kernel.kptr_restrict" = 0; + + services.openssh.settings.X11Forwarding = true; + networking = { timeServers = [ "ntp1.upc.edu" "ntp2.upc.edu" ]; hostName = "fox";