ssd trim and glx

This commit is contained in:
Sense T
2023-07-20 10:08:01 +00:00
parent 03face65d6
commit 68dfe757e8
3 changed files with 32 additions and 6 deletions

View File

@@ -46,6 +46,9 @@
accelProfile = "flat";
};
};
videoDrivers = [
"intel"
];
};
pipewire = {
@@ -80,9 +83,9 @@
programs = {
thunar = {
enable = true;
plugins = with pkgs.xfce; [
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
thunar-volman
];
};

View File

@@ -1,11 +1,27 @@
{
{ pkgs, lib, ... }: {
sound.enable = true;
networking.networkmanager.enable = true;
time.timeZone = "Asia/Shanghai";
security.sudo.wheelNeedsPassword = false;
environment.variables.VDPAU_DRIVER = "va_gl";
hardware = {
opengl.enable = true;
opengl = {
enable = true;
extraPackages = with pkgs; [
mesa.drivers
libvdpau-va-gl
intel-media-driver
vaapiVdpau
(
if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then
vaapiIntel
else
intel-vaapi-driver
)
];
};
};
# Select internationalisation properties.