From 75beea4e761ab07ff9813d7c45b18b75e38573ca Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 15 Jul 2023 22:31:06 +0900 Subject: [PATCH] test --- hosts/nixos-laptop/configuration.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/hosts/nixos-laptop/configuration.nix b/hosts/nixos-laptop/configuration.nix index 3e796413..fc560c01 100644 --- a/hosts/nixos-laptop/configuration.nix +++ b/hosts/nixos-laptop/configuration.nix @@ -19,10 +19,10 @@ opengl.enable = true; opengl.driSupport32Bit = true; opengl.driSupport = true; - # opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ]; + opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ]; nvidia = { - open = false; + open = true; powerManagement.enable = true; modesetting.enable = true; prime = { @@ -36,18 +36,20 @@ }; }; - # environment.variables = { - # GBM_BACKEND = "nvidia-drm"; - # LIBVA_DRIVER_NAME = "nvidia"; - # __GLX_VENDOR_LIBRARY_NAME = "nvidia"; - # }; + services.xserver.videoDrivers = [ "nvidia" ]; + + environment.variables = { + GBM_BACKEND = "nvidia-drm"; + LIBVA_DRIVER_NAME = "nvidia"; + __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + }; environment.systemPackages = with pkgs; [ # Fingerprint software fprintd # nVidia graphcis options - # vulkan-loader - # vulkan-validation-layers - # vulkan-tools + vulkan-loader + vulkan-validation-layers + vulkan-tools ]; }