Skip to content

Commit

Permalink
Setup nvidia-offload the GPU (Nvidia A500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jan 5, 2025
1 parent dea960e commit 9d7abb0
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion system/_sigmachine.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,39 @@
{ lib, ... }: {
{ pkgs, lib, ... }: {
boot.loader.grub.gfxmodeEfi = lib.mkForce "1920x1200x32";

system = {
copySystemConfiguration = false;
stateVersion = "24.05";
};
hardware.graphics = {
enable = true;

extraPackages = with pkgs; [
amdvlk
intel-media-driver
libvdpau-va-gl
nvidia-vaapi-driver
vaapiIntel
vaapiVdpau
vulkan-validation-layers
mesa.drivers
];
};

services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;

prime = {
offload.enable = true;
offload.enableOffloadCmd = true; # install `nvidia-offload`

intelBusId = "PCI:0:02:0";
nvidiaBusId = "PCI:3:0:0";
};
};

}

0 comments on commit 9d7abb0

Please sign in to comment.