chore: move opengl to machines configs

This commit is contained in:
Ruben 2024-04-22 09:29:59 -05:00
commit 90f156e179
No known key found for this signature in database
GPG key ID: AE181294E97E4802
2 changed files with 23 additions and 0 deletions

View file

@ -9,6 +9,7 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
# use shared configuration
../../config/nixos.nix
];
@ -44,6 +45,17 @@
];
};
# opengl and graphics settings
# https://nixos.wiki/wiki/Accelerated_Video_Playback
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
libvdpau-va-gl
];
};
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -45,6 +45,17 @@
];
};
# opengl and graphics settings
# https://nixos.wiki/wiki/Accelerated_Video_Playback
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
libvdpau-va-gl
];
};
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
# TODO: refer to https://github.com/ahbnr/nixos-06cb-009a-fingerprint-sensor?tab=readme-ov-file#setup-based-on-fprintd-and-bingchs-driver
# and update this part accordingly to make it easy to follow and do
#services.fprintd.enable = false;