initial commit

This commit is contained in:
Noa Aarts 2024-02-28 02:07:59 +01:00
commit 3a71fb8ce2
8 changed files with 1334 additions and 0 deletions

27
hosts/default/nvidia.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
{
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDriver = "nvidia";
hardware.nvidia = {
modesetting.enable = true;
# NOTE change this if borked
powerManagement = {
enable = true;
finegrained = false;
};
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}