talos: configure nvidia GPU
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
name,
|
||||
@@ -16,6 +17,31 @@
|
||||
|
||||
services.thermald.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (lib.getName pkg) ([
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
"nvidia-kernel-modules"
|
||||
]);
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.nvidia = {
|
||||
# NVIDIA Quadro P3200 is a Pascal Series card: https://en.wikipedia.org/wiki/List_of_Nvidia_graphics_processing_units#Quadro_Pxxx_series
|
||||
# Latest driver for Pascal is 580: https://nvidia.custhelp.com/app/answers/detail/a_id/5706/~/nvidia-quadro-support-plan-for-maxwell%2C-pascal%2C-and-volta-gpus.
|
||||
package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
# Turing or newer required for open kernel module driver: https://wiki.archlinux.org/title/NVIDIA#Installation
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
hardware.nvidia.prime = {
|
||||
sync.enable = true;
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
fonts.fontconfig.defaultFonts = {
|
||||
monospace = [
|
||||
|
||||
Reference in New Issue
Block a user