From 8020d1446ac9c0d5dbb64609503e3df5a71f1463 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 15 Jul 2023 21:26:08 +0900 Subject: [PATCH] test --- configuration.nix | 2 +- hosts/nixos-laptop/configuration.nix | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7b7d8767..bf87d278 100644 --- a/configuration.nix +++ b/configuration.nix @@ -19,7 +19,7 @@ ]; # Allow unfree packages - nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfree = true; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; diff --git a/hosts/nixos-laptop/configuration.nix b/hosts/nixos-laptop/configuration.nix index 1007037c..ed3e84ec 100644 --- a/hosts/nixos-laptop/configuration.nix +++ b/hosts/nixos-laptop/configuration.nix @@ -19,6 +19,8 @@ opengl.enable = true; opengl.driSupport32Bit = true; opengl.driSupport = true; + + opengl.extraPackages = with pkgs; [nvidia-vaapi-driver]; nvidia = { open = true; @@ -35,11 +37,18 @@ }; }; - # Enable nVidia graphics - 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 ]; }