From 802515cc86e09ab96ed247b5d0c317ac83871773 Mon Sep 17 00:00:00 2001 From: caem Date: Sat, 25 May 2024 16:49:53 +0200 Subject: [PATCH] Optimize performance in games - Switch kernel to xanmod - Allow tearing in Hyprland --- machines/workstation/configuration.nix | 2 +- packages/wm/hyprland.nix | 1 + users/hu/packages/hyprland.nix | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/machines/workstation/configuration.nix b/machines/workstation/configuration.nix index 33a4084..1b6418b 100644 --- a/machines/workstation/configuration.nix +++ b/machines/workstation/configuration.nix @@ -16,7 +16,7 @@ device = "nodev"; gfxmodeEfi = "1920x1080"; }; - boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelPackages = pkgs.linuxPackages_xanmod_latest; boot.supportedFilesystems = [ "btrfs" "xfs" ]; networking = { diff --git a/packages/wm/hyprland.nix b/packages/wm/hyprland.nix index 38026c9..86f85a2 100644 --- a/packages/wm/hyprland.nix +++ b/packages/wm/hyprland.nix @@ -23,6 +23,7 @@ GBM_BACKEND = "nvidia-drm"; __GLX_VENDOR_LIBRARY_NAME = "nvidia"; NIXOS_OZONE_WL = 1; # TODO: This doesn't work. Fix it + WLR_DRM_NO_ATOMIC = 1; }; programs.hyprland.enable = true; diff --git a/users/hu/packages/hyprland.nix b/users/hu/packages/hyprland.nix index e419167..94448e3 100644 --- a/users/hu/packages/hyprland.nix +++ b/users/hu/packages/hyprland.nix @@ -21,6 +21,7 @@ gaps_out = 10; border_size = 1; layout = "master"; + allow_tearing = true; }; master = {