seperate vnc config

This commit is contained in:
Noa Aarts 2024-03-06 15:21:15 +01:00
parent 53d972c9a0
commit 93309a816c
9 changed files with 606 additions and 3 deletions

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

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
{
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = [ "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;
};
}