small update

This commit is contained in:
Sense T 2023-07-20 10:31:07 +00:00
parent 3e1cba86bd
commit 7dc46cc523

View File

@ -1,4 +1,13 @@
{ pkgs, lib, ... }: { { pkgs, lib, ... }:
let
intel-driver = (
if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then
pkgs.vaapiIntel
else
pkgs.intel-vaapi-driver
);
in
{
sound.enable = true; sound.enable = true;
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "Asia/Shanghai"; time.timeZone = "Asia/Shanghai";
@ -8,17 +17,11 @@
hardware = { hardware = {
opengl = { opengl = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = [
mesa.drivers pkgs.mesa.drivers
libvdpau-va-gl pkgs.libvdpau-va-gl
vaapiVdpau pkgs.vaapiVdpau
intel-driver
(
if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then
vaapiIntel
else
intel-vaapi-driver
)
]; ];
}; };
}; };