2023-10-27 14:01:54 +02:00
|
|
|
{ config, pkgs, lib, materusArg, ... }:
|
2023-10-08 11:42:08 +02:00
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./filesystem.nix
|
|
|
|
./boot.nix
|
|
|
|
|
|
|
|
];
|
|
|
|
hardware.firmware = with pkgs; [
|
2023-12-22 11:53:49 +01:00
|
|
|
materusArg.pkgs.amdgpu-pro-libs.firmware.vcn
|
2024-05-10 18:12:05 +02:00
|
|
|
materusArg.pkgs.amdgpu-pro-libs.firmware
|
2023-10-08 11:42:08 +02:00
|
|
|
linux-firmware
|
|
|
|
alsa-firmware
|
|
|
|
sof-firmware
|
|
|
|
];
|
2023-10-14 14:40:37 +02:00
|
|
|
|
|
|
|
environment.variables = {
|
|
|
|
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1 = "1";
|
|
|
|
VK_ICD_FILENAMES = "${pkgs.mesa.drivers}/share/vulkan/icd.d/radeon_icd.x86_64.json:${pkgs.driversi686Linux.mesa.drivers}/share/vulkan/icd.d/radeon_icd.i686.json";
|
|
|
|
AMD_VULKAN_ICD = "RADV";
|
|
|
|
RADV_PERFTEST = "gpl,rt,sam";
|
2023-10-25 00:06:20 +02:00
|
|
|
OCL_ICD_VENDORS = "${pkgs.rocmPackages.clr.icd}/etc/OpenCL/vendors/";
|
2023-10-14 14:40:37 +02:00
|
|
|
};
|
2023-10-08 11:42:08 +02:00
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkForce true;
|
|
|
|
|
|
|
|
#extra
|
|
|
|
hardware.wooting.enable = true;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
#Graphics
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
amdvlk
|
2024-10-15 21:22:16 +02:00
|
|
|
vkbasalt
|
2023-10-14 14:40:37 +02:00
|
|
|
rocmPackages.clr.icd
|
|
|
|
rocmPackages.clr
|
2023-10-27 14:01:54 +02:00
|
|
|
materusArg.pkgs.amdgpu-pro-libs.vulkan
|
|
|
|
materusArg.pkgs.amdgpu-pro-libs.amf
|
2023-10-08 11:42:08 +02:00
|
|
|
];
|
|
|
|
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [
|
|
|
|
vaapiVdpau
|
2024-10-15 21:22:16 +02:00
|
|
|
vkbasalt
|
2023-10-08 11:42:08 +02:00
|
|
|
pkgs.driversi686Linux.amdvlk
|
2023-10-27 14:01:54 +02:00
|
|
|
materusArg.pkgs.i686Linux.amdgpu-pro-libs.vulkan
|
2023-10-08 11:42:08 +02:00
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
2024-05-10 18:12:05 +02:00
|
|
|
/*services.udev.extraRules = ''
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
#GPU bar size
|
|
|
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x1002", ATTR{device}=="0x744c", ATTR{resource0_resize}="15"
|
|
|
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x1002", ATTR{device}=="0x744c", ATTR{resource2_resize}="8"
|
2024-05-10 18:12:05 +02:00
|
|
|
'';*/
|
2023-10-14 14:40:37 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
#Trim
|
|
|
|
services.fstrim = {
|
|
|
|
enable = true;
|
|
|
|
interval = "weekly";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|