From 9a61a9ff034b8c398b3efaea02278b4a0475ac60 Mon Sep 17 00:00:00 2001 From: Emmet Date: Fri, 21 Mar 2025 09:43:25 -0500 Subject: [PATCH] intel improvements --- hosts/duskfall/configuration.nix | 1 + hosts/duskfall/hardware-configuration.nix | 11 ++++++++++- hosts/zenith/configuration.nix | 1 + hosts/zenith/hardware-configuration.nix | 11 ++++++++++- modules/user/hyprland/default.nix | 3 ++- 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/hosts/duskfall/configuration.nix b/hosts/duskfall/configuration.nix index bd7ad2ac..2adf470c 100644 --- a/hosts/duskfall/configuration.nix +++ b/hosts/duskfall/configuration.nix @@ -55,6 +55,7 @@ libwacom ]; services.xserver.wacom.enable = true; + services.xserver.videoDrivers = [ "i915" ]; }; diff --git a/hosts/duskfall/hardware-configuration.nix b/hosts/duskfall/hardware-configuration.nix index 1c83f7da..fe0733fc 100644 --- a/hosts/duskfall/hardware-configuration.nix +++ b/hosts/duskfall/hardware-configuration.nix @@ -18,6 +18,8 @@ extraPackages = with pkgs; [ intel-media-driver intel-vaapi-driver + vaapiIntel + vaapiVdpau libvdpau-va-gl ]; extraPackages32 = with pkgs.driversi686Linux; [ @@ -27,8 +29,15 @@ ]; }; + environment.sessionVariables = { + LIBVA_DRIVER_NAME = "iHD"; + }; + + powerManagement.cpuFreqGovernor = "performance"; + services.thermald.enable = true; + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "i915" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; diff --git a/hosts/zenith/configuration.nix b/hosts/zenith/configuration.nix index d5271fb5..54b099b9 100644 --- a/hosts/zenith/configuration.nix +++ b/hosts/zenith/configuration.nix @@ -53,6 +53,7 @@ libwacom ]; services.xserver.wacom.enable = true; + services.xserver.videoDrivers = [ "i915" ]; }; diff --git a/hosts/zenith/hardware-configuration.nix b/hosts/zenith/hardware-configuration.nix index 05e544a2..83d435a0 100644 --- a/hosts/zenith/hardware-configuration.nix +++ b/hosts/zenith/hardware-configuration.nix @@ -9,7 +9,7 @@ ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "ahci" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "i915" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ]; @@ -23,6 +23,8 @@ extraPackages = with pkgs; [ intel-media-driver intel-vaapi-driver + vaapiIntel + vaapiVdpau libvdpau-va-gl ]; extraPackages32 = with pkgs.driversi686Linux; [ @@ -32,6 +34,13 @@ ]; }; + environment.sessionVariables = { + LIBVA_DRIVER_NAME = "iHD"; + }; + + powerManagement.cpuFreqGovernor = "performance"; + services.thermald.enable = true; + fileSystems."/" = { device = "/dev/disk/by-uuid/548f7030-af4c-412a-b2ed-d842337aa336"; fsType = "ext4"; diff --git a/modules/user/hyprland/default.nix b/modules/user/hyprland/default.nix index f46dc003..2704cb3f 100644 --- a/modules/user/hyprland/default.nix +++ b/modules/user/hyprland/default.nix @@ -112,6 +112,7 @@ in enable_swallow = true; swallow_regex = "(scratch_term)|(Alacritty)|(kitty)"; font_family = font; + vfr = true; }; bezier = [ @@ -522,7 +523,7 @@ modules: center: - Workspaces right: - - [Clock, Privacy, Settings, Tray] + - [Clock, Settings, Tray] appLauncherCmd: "nwggrid-wrapper" # optional, default None truncateTitleAfterLength: 150 # optional, default 150 workspaces: