Compare commits

..

5 Commits

Author SHA1 Message Date
6504918007
feat(hosts/orion): enable iwlwifi power save
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
2024-08-11 15:51:01 -05:00
525e07f480
build(nix): update flake.lock
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 44s
2024-08-11 15:08:24 -05:00
e159f774df
chore(vesktop): update settings.json
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 47s
2024-08-11 15:06:47 -05:00
c785e9d2ce
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 14:58:30 -05:00
910a61f07b
feat(hosts/orion): enable Nvidia GPU w/ PRIME 2024-08-11 14:58:30 -05:00

View File

@ -1,36 +1,23 @@
{ { 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-va-gl libvdpau
nvidia-vaapi-driver
]; ];
extraPackages32 = with pkgs.driversi686Linux; [ intel-vaapi-driver ];
}; };
nvidia = { nvidia = {
modesetting.enable = true;
nvidiaSettings = true; nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.beta; open = true;
powerManagement.enable = true;
prime = { prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0"; intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
}; };
}; };
}; };