1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-10 04:59:40 +01:00
nixos-hardware/common/gpu/nvidia/default.nix
seth 6b745e2331 common-gpu-nvidia: enable modesetting by default
This is commonly required for many applications. As of
https://github.com/NixOS/nixpkgs/pull/324921 this will also enable
`nvidia-drm.fbdev=1`, fixing issues such as
https://github.com/NixOS/nixpkgs/issues/302059
2024-07-11 22:43:18 +00:00

8 lines
247 B
Nix

{ lib, ... }:
{
imports = [ ../24.05-compat.nix ];
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
# TODO: this will be a default after https://github.com/NixOS/nixpkgs/pull/326369
hardware.nvidia.modesetting.enable = true;
}