2024-11-19 13:20:34 -05:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
{
|
2024-11-29 01:49:18 -05:00
|
|
|
options.system.video.nouveau.enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Enable the open-source Nouveau driver";
|
2024-11-19 13:20:34 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.system.video.nouveau.enable {
|
|
|
|
services.xserver.videoDrivers = [ "nouveau" ];
|
|
|
|
boot.kernelParams = [ "nouveau.config=NvGspRm=1" ];
|
|
|
|
};
|
|
|
|
}
|