Skip to content

Commit

Permalink
nixos/nvidia: hardware.opengl -> hardware.graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jun 26, 2024
1 parent 3132c0b commit b237ea9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions modules/nixos/traits/24.05-compat.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{lib, ...}: {
imports = lib.optionals (lib.versionOlder lib.version "24.11pre") [
(lib.mkAliasOptionModule ["hardware" "graphics" "extraPackages"] ["hardware" "opengl" "extraPackages"])
];
}
2 changes: 2 additions & 0 deletions modules/nixos/traits/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
imports = [
./24.05-compat.nix # TODO: remove when 24.11 is stable

./auto-upgrade.nix
./containers.nix
./home-manager.nix
Expand Down
4 changes: 2 additions & 2 deletions modules/nixos/traits/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ in {
services.xserver.videoDrivers = ["nvidia"];

hardware = {
opengl.extraPackages = [pkgs.vaapiVdpau];
graphics.extraPackages = [pkgs.vaapiVdpau];
nvidia = {
package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true;
Expand All @@ -39,7 +39,7 @@ in {
MESA_VK_VERSION_OVERRIDE = "1.3";
};

hardware.opengl.extraPackages = lib.mkForce [];
hardware.graphics.extraPackages = lib.mkForce [];

services.xserver.videoDrivers = lib.mkForce ["modesetting"];

Expand Down

0 comments on commit b237ea9

Please sign in to comment.