{
config,
lib,
...
}: let
cfg = config.roles.graphics;
in {
config = lib.mkIf cfg.nvidia.enable {
arta.unfree.allow = ["nvidia-x11"];
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = true;
nvidiaSettings = false;
};
boot.kernelParams = ["nvidia-drm.fbdev=1"];
};
}