From 1660b2c74029a5ae79d16cab011bb1fef6e60ca4 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 11 Aug 2024 15:51:01 -0500 Subject: [PATCH] feat(hosts/orion): enable `iwlwifi` power save --- hosts/orion/modules/hardware.nix | 5 ++++- hosts/orion/os/hardware.nix | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/orion/modules/hardware.nix b/hosts/orion/modules/hardware.nix index c5ccf901..ceb20053 100644 --- a/hosts/orion/modules/hardware.nix +++ b/hosts/orion/modules/hardware.nix @@ -1,6 +1,9 @@ { pkgs, config, ... }: { - services.xserver.videoDrivers = [ "nvidia" ]; + services.xserver.videoDrivers = [ + "intel" + "nvidia" + ]; environment.variables.VDPAU_DRIVER = "va_gl"; hardware = { enableRedistributableFirmware = true; diff --git a/hosts/orion/os/hardware.nix b/hosts/orion/os/hardware.nix index 7803acfd..48b7eb9a 100644 --- a/hosts/orion/os/hardware.nix +++ b/hosts/orion/os/hardware.nix @@ -3,4 +3,7 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; services.fstrim.enable = true; + boot.extraModprobeConfig = '' + options iwlwifi power_save=1 + ''; }