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

View file

@ -14,14 +14,14 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/cc0edda8-8932-4357-9622-e7658b5a5a6d"; { device = "/dev/disk/by-uuid/50c34d14-4b3a-483c-874e-b6412a474cfe";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-b0ba1647-1532-478b-b015-ab2abc2bc0d7".device = "/dev/disk/by-uuid/b0ba1647-1532-478b-b015-ab2abc2bc0d7"; boot.initrd.luks.devices."luks-efb1b312-b89c-493e-952a-f70fc2ab0fbf".device = "/dev/disk/by-uuid/efb1b312-b89c-493e-952a-f70fc2ab0fbf";
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/92D9-2113"; { device = "/dev/disk/by-uuid/1826-F6B8";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0077" "dmask=0077" ];
}; };