From 3204242308f3c33983e59cf438aac14126a60543 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Fri, 10 Jan 2025 16:40:24 -0600 Subject: [PATCH] gaming configurations --- hosts/workstation/configuration.nix | 4 ++++ hosts/workstation/hardware-configuration.nix | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/hosts/workstation/configuration.nix b/hosts/workstation/configuration.nix index 7b01063..0ef0223 100644 --- a/hosts/workstation/configuration.nix +++ b/hosts/workstation/configuration.nix @@ -134,6 +134,10 @@ }; services = { flatpak.enable = true; + scx = { + enable = true; + scheduler = "scx_lavd"; + }; btrfs.autoScrub = { enable = true; fileSystems = [ "/" ]; diff --git a/hosts/workstation/hardware-configuration.nix b/hosts/workstation/hardware-configuration.nix index d021959..3265b47 100644 --- a/hosts/workstation/hardware-configuration.nix +++ b/hosts/workstation/hardware-configuration.nix @@ -2,6 +2,7 @@ modulesPath, pkgs, inputs, + lib, ... }: { @@ -38,11 +39,15 @@ "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" + "preempt=full" ]; kernelPackages = pkgs.linuxPackages_zen; kernel.sysctl = { "vm.swappiness" = 80; "net.ipv4.tcp_mtu_probing" = 1; + "kernel.sched_cfsbandwidth_slice_us" = lib.mkDefault 3000; + "net.ipv4.tcp_fin_timeout" = lib.mkDefault 5; + "vm.max_map_count" = lib.mkDefault 2147483642; }; loader = { efi = {