Skip to content

Commit

Permalink
Lets give nvidia another try
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Apr 28, 2024
1 parent 6f467a3 commit 0553827
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion system/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,44 @@

hardware = {
pulseaudio.enable = false;
opengl.enable = true;
opengl = {
enable = true;

driSupport = true;
driSupport32Bit = true;

extraPackages = with pkgs; [
amdvlk
intel-media-driver # LIBVA_DRIVER_NAME=iHD
libvdpau-va-gl
nvidia-vaapi-driver
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
vulkan-validation-layers
];

};

nvidia = {
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;

powerManagement.enable = false;
powerManagement.finegrained = false;

open = false;
nvidiaSettings = true;

prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};

amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};

programs = {
Expand Down Expand Up @@ -141,6 +178,7 @@
enable = true;
displayManager.startx.enable = true;
layout = "custom";
videoDrivers = [ "nvidia" ];

extraLayouts.custom = {
description = "oui oui baguette";
Expand Down

0 comments on commit 0553827

Please sign in to comment.