[system]: Nvidia

This commit is contained in:
2024-10-01 15:32:05 +03:00
parent 999718f06e
commit aea3998da7
6 changed files with 35 additions and 8 deletions
+24 -1
View File
@@ -1,4 +1,4 @@
{
{ config, ...}: {
imports = [
./hardware-configuration.nix
./packages.nix
@@ -18,4 +18,27 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Enabling flakes
system.stateVersion = "23.05"; # Don't change it bro
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = {
sync.enable = true;
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.kernelModules = [ "amdgpu" ];
boot.initrd.kernelModules = [ "nvidia" ];
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ];
}
-1
View File
@@ -102,7 +102,6 @@
pamixer
# GPU stuff
#amdvlk
rocm-opencl-icd
glaxnimate