hotfix: my funny gpu

This commit is contained in:
KaitoTLex 2025-01-15 21:14:41 -08:00
parent caff436170
commit a719669838
2 changed files with 20 additions and 13 deletions

View file

@ -4,6 +4,7 @@
{
config,
pkgs,
lib,
...
}:
{
@ -20,7 +21,7 @@
services.ratbagd.enable = true;
hardware.graphics.enable32Bit = true;
hardware.pulseaudio.support32Bit = true;
#Nvidia Hardware begins
#Nvidia Hardware begins
hardware.nvidia = {
# Modesetting is required.
@ -28,19 +29,19 @@
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
powerManagement.enable = false;
powerManagement.enable = lib.mkForce true;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = true;
powerManagement.finegrained = lib.mkForce true;
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting.
open = true;
@ -50,8 +51,8 @@
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
#Power Saving Features
package = config.boot.kernelPackages.nvidiaPackages.production;
#Power Saving Features
prime = {
offload = {
enable = true;
@ -60,7 +61,7 @@
# Make sure to use the correct Bus ID values for your system!
#intelBusId = "PCI:";
nvidiaBusId = "PCI:01:0:0";
amdgpuBusId = "PCI:08:00:00";
amdgpuBusId = "PCI:08:0:0";
};
};
@ -114,6 +115,12 @@
driver = pkgs.libfprint-2-tod1-elan;
};
};
#System specific packages to install
environment.systemPackages = with pkgs; [
nvtop
];
# List services that you want to enable:
services.actkbd = {
enable = true;