From 6b745e2331ba42e2f744434dcef1fe31ef9a4ced Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 11 Jul 2024 15:43:10 -0400 Subject: [PATCH] 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 --- common/gpu/nvidia/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/gpu/nvidia/default.nix b/common/gpu/nvidia/default.nix index 281e33f..de1494e 100644 --- a/common/gpu/nvidia/default.nix +++ b/common/gpu/nvidia/default.nix @@ -3,4 +3,6 @@ { 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; }