From bf0de64317a02d6dc34c44a4127571181e2a059d Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 6 Jul 2022 14:21:03 -0500 Subject: [PATCH] trying to make nvidia work better on kaladin --- README.org | 7 +++++-- system/kaladin/configuration.nix | 5 ++++- system/kaladin/hardware-configuration.nix | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 061d10e..e6aeaa1 100644 --- a/README.org +++ b/README.org @@ -741,7 +741,10 @@ Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 a libvdpau-va-gl ]; }; - nvidia.modesetting.enable = true; + nvidia = { + modesetting.enable = true; + powerManagement.enable = true; + }; }; <> @@ -870,7 +873,7 @@ And here is it's hardware config. boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; fileSystems."/" = { device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10"; diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index 06f180b..fffe83f 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -56,7 +56,10 @@ libvdpau-va-gl ]; }; - nvidia.modesetting.enable = true; + nvidia = { + modesetting.enable = true; + powerManagement.enable = true; + }; }; services.xserver = { diff --git a/system/kaladin/hardware-configuration.nix b/system/kaladin/hardware-configuration.nix index 808de52..e1c084d 100644 --- a/system/kaladin/hardware-configuration.nix +++ b/system/kaladin/hardware-configuration.nix @@ -8,7 +8,7 @@ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; fileSystems."/" = { device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";