mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 05:03:15 -08:00
chore: move opengl to machines configs
This commit is contained in:
parent
fd2ddc84cb
commit
90f156e179
2 changed files with 23 additions and 0 deletions
|
|
@ -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. It‘s perfectly fine and recommended to leave
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue