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;
networking.networkmanager.enable = true;
time.timeZone = "Asia/Shanghai";
@ -8,17 +17,11 @@
hardware = {
opengl = {
enable = true;
extraPackages = with pkgs; [
mesa.drivers
libvdpau-va-gl
vaapiVdpau
(
if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then
vaapiIntel
else
intel-vaapi-driver
)
extraPackages = [
pkgs.mesa.drivers
pkgs.libvdpau-va-gl
pkgs.vaapiVdpau
intel-driver
];
};
};