Compare commits

..

5 Commits

Author SHA1 Message Date
4dea099ecf
feat(hosts/orion): enable iwlwifi power save
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 45s
2024-08-11 16:53:18 -05:00
20a5c3a459
build(nix): update flake.lock 2024-08-11 16:53:17 -05:00
6899497493
chore(vesktop): update settings.json 2024-08-11 16:53:17 -05:00
e526849527
feat(hm/price): enable Nvidia PRIME offloading for Steam
We setup a custom `steam.desktop` entry for our applications that makes
Steam run on the Nvidia graphics card. As a consequence, all processes
launched by steam will likewise offload their graphical rendering to the
discrete graphics card as well.
2024-08-11 16:53:17 -05:00
1ba55b468d
feat(hosts/orion): enable Nvidia GPU w/ PRIME 2024-08-11 16:53:17 -05:00

View File

@ -1,23 +1,36 @@
{ pkgs, ... }: {
pkgs,
lib,
config,
...
}:
{ {
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
environment.variables.VDPAU_DRIVER = "va_gl";
hardware = { hardware = {
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
graphics = { graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
vpl-gpu-rt
intel-media-driver intel-media-driver
intel-vaapi-driver intel-vaapi-driver
libvdpau libvdpau-va-gl
nvidia-vaapi-driver
]; ];
extraPackages32 = with pkgs.driversi686Linux; [ intel-vaapi-driver ];
}; };
nvidia = { nvidia = {
modesetting.enable = true;
nvidiaSettings = true; nvidiaSettings = true;
open = true; package = config.boot.kernelPackages.nvidiaPackages.beta;
powerManagement.enable = true;
prime = { prime = {
intelBusId = "PCI:0:2:0"; offload = {
enable = true;
enableOffloadCmd = true;
};
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0";
}; };
}; };
}; };