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"; accelProfile = "flat";
}; };
}; };
videoDrivers = [
"intel"
];
}; };
pipewire = { pipewire = {

View File

@ -1,11 +1,27 @@
{ { pkgs, lib, ... }: {
sound.enable = true; sound.enable = true;
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "Asia/Shanghai"; time.timeZone = "Asia/Shanghai";
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
environment.variables.VDPAU_DRIVER = "va_gl";
hardware = { 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. # Select internationalisation properties.

View File

@ -23,7 +23,7 @@
}; };
initrd = { initrd = {
#verbose = false; verbose = false;
availableKernelModules = [ availableKernelModules = [
"xhci_pci" "xhci_pci"
"ahci" "ahci"
@ -31,6 +31,7 @@
"usb_storage" "usb_storage"
"usbhid" "usbhid"
"sd_mod" "sd_mod"
"i915"
]; ];
}; };
@ -55,20 +56,26 @@
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8095-BE1B"; device = "/dev/disk/by-uuid/8095-BE1B";
fsType = "vfat"; fsType = "vfat";
options = [ "discard" ];
}; };
fileSystems."/nix" = { fileSystems."/nix" = {
device = "/dev/disk/by-uuid/d2fac87e-ce48-174a-a544-36606fd39ee0"; device = "/dev/disk/by-uuid/d2fac87e-ce48-174a-a544-36606fd39ee0";
fsType = "ext4"; fsType = "ext4";
options = [ "discard" ];
}; };
fileSystems."/home" = { fileSystems."/home" = {
device = "/dev/disk/by-uuid/4125f3b3-7613-a04b-910c-87169a7a87b3"; device = "/dev/disk/by-uuid/4125f3b3-7613-a04b-910c-87169a7a87b3";
fsType = "ext4"; fsType = "ext4";
options = [ "discard" ];
}; };
swapDevices = [ swapDevices = [
{ device = "/dev/nvme0n1p2"; } {
device = "/dev/nvme0n1p2";
options = [ "discard" ];
}
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking