Whatever changes idk i just wanna pull on my server

This commit is contained in:
Jimbo 2024-08-29 14:15:26 -04:00
parent 5560c87175
commit 1d3c95e680
10 changed files with 29 additions and 30 deletions

View file

@ -4,6 +4,7 @@
commonKernelParams = [
# Nvidia settings
"nvidia_drm.fbdev=1"
"nouveau.config=NvGspRm=1"
# VM/GPU passthrough
"amd_iommu=on"

View file

@ -0,0 +1,4 @@
{pkgs, ...}: {
# Enable video drivers
services.xserver.videoDrivers = ["nouveau"];
}

View file

@ -1,17 +1,10 @@
{pkgs, config, ... }: {
{pkgs, config, ...}: {
# Enable video drivers
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
nvidiaSettings = false;
package = config.boot.kernelPackages.nvidiaPackages.beta;
open = false;
};
environment.sessionVariables = {
CUDA_PATH = "${pkgs.cudatoolkit}";
EXTRA_LDFLAGS = "-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib";
EXTRA_CCFLAGS = "-I/usr/include";
};
}

View file

@ -1,13 +1,11 @@
{
config,
pkgs,
...
}: {
{pkgs, ...}: {
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
package = pkgs.unstable.mesa.drivers;
package32 = pkgs.unstable.pkgsi686Linux.mesa.drivers;
extraPackages = with pkgs; [
vulkan-loader
vulkan-validation-layers