From 44b0e572c74e5501495711d9724f309b6e80e2bf Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 30 Aug 2024 11:00:28 +0200 Subject: [PATCH] update graphics config on hape --- hosts/hape/configuration.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/hape/configuration.nix b/hosts/hape/configuration.nix index bb272b4..c2bb5c0 100644 --- a/hosts/hape/configuration.nix +++ b/hosts/hape/configuration.nix @@ -1,8 +1,11 @@ { config, + lib, pkgs, ... -}: { +}: let + inherit (lib.attrsets) attrValues; +in { nixpkgs.config = { permittedInsecurePackages = [ "olm-3.2.16" @@ -33,8 +36,22 @@ hardware.graphics = { enable = true; - driSupport = true; enable32Bit = true; + extraPackages = attrValues { + inherit (pkgs) + mesa + libdrm + libva + vaapiVdpau + libvdpau-va-gl + ; + }; + extraPackages32 = attrValues { + inherit (pkgs.driversi686Linux) + mesa + libvdpau-va-gl + ; + }; }; services.journald = {