My desktop has I7 + GTX 980, I formatted my computer and installed nixos, I followed the wiki to install the Nvidia driver: Nvidia - NixOS Wiki
After that, everything is fine. In my obs-studio, I can use my NVENC encoding, but when I try to use bitwarden, discord, vscode or any application created by electron, it doesn’t work.
Can anyone help me?
when I try to open bitwarden
[damiano@nixos:~]$ source bitwarden
(node:2623) DeprecationWarning: file property is deprecated and will be removed in v5.
(Use `bash --trace-deprecation ...` to show where the warning was created)
(node:2623) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'init')
at BiometricsService.<anonymous> (/nix/store/asigg5jhf6z1ns5hp84yhgbl8a1zz8qd-bitwarden-2023.4.0/opt/Bitwarden/resources/app.asar/main.js:44459:55)
at Generator.next (<anonymous>)
at /nix/store/asigg5jhf6z1ns5hp84yhgbl8a1zz8qd-bitwarden-2023.4.0/opt/Bitwarden/resources/app.asar/main.js:44425:71
at new Promise (<anonymous>)
at biometrics_service_awaiter (/nix/store/asigg5jhf6z1ns5hp84yhgbl8a1zz8qd-bitwarden-2023.4.0/opt/Bitwarden/resources/app.asar/main.js:44421:12)
at BiometricsService.init (/nix/store/asigg5jhf6z1ns5hp84yhgbl8a1zz8qd-bitwarden-2023.4.0/opt/Bitwarden/resources/app.asar/main.js:44458:16)
at Main.<anonymous> (/nix/store/asigg5jhf6z1ns5hp84yhgbl8a1zz8qd-bitwarden-2023.4.0/opt/Bitwarden/resources/app.asar/main.js:52469:46)
at Generator.next (<anonymous>)
at fulfilled (/nix/store/asigg5jhf6z1ns5hp84yhgbl8a1zz8qd-bitwarden-2023.4.0/opt/Bitwarden/resources/app.asar/main.js:52366:58)
(node:2623) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /run/opengl-driver/lib/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /run/opengl-driver/lib/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /run/opengl-driver/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /run/opengl-driver/lib/dri, suffix _dri)
That error might be due to the need to configure hardware acceleration for NVIDIA:
hardware.opengl.enable = true;
hardware.opengl.extraPackages = [ pkgs.libvdpau-va-gl ]; #NVIDIA doesn't support libvdpau, so this package will redirect VDPAU calls to LIBVA.
environment.variables.VDPAU_DRIVER = "va_gl";
environment.variables.LIBVA_DRIVER_NAME = "nvidia";
Also check /run/opengl-driver/lib/dri/
to ensure the files it tried to load exist.