Last active
April 7, 2022 10:15
-
-
Save floscr/72f8f43e9339058ea4a520532455a3b3 to your computer and use it in GitHub Desktop.
Elden Ring Nix Tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# e595 nixOS device configuration | |
{ config, pkgs, lib, ... }: | |
{ | |
boot = { | |
kernelParams = [ ]; | |
kernelModules = [ "thinkpad_acpi" "acpi_call" "kvm_amd" ]; | |
initrd.kernelModules = [ "amdgpu" ]; | |
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; | |
}; | |
environment = { | |
systemPackages = with pkgs; [ | |
radeontop | |
]; | |
}; | |
hardware = { | |
cpu.amd.updateMicrocode = true; | |
opengl = { | |
extraPackages = with pkgs; [ | |
amdvlk | |
libva | |
libvdpau | |
libvdpau-va-gl | |
mesa | |
rocm-opencl-icd | |
rocm-opencl-runtime | |
vaapiVdpau | |
]; | |
extraPackages32 = with pkgs.driversi686Linux; [ | |
amdvlk | |
mesa | |
libvdpau-va-gl | |
vaapiVdpau | |
]; | |
}; | |
}; | |
services = { | |
xserver = { | |
videoDrivers = [ "amdgpu" ]; | |
deviceSection = '' | |
Option "TearFree" "true" | |
''; | |
}; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs, | |
lib, | |
... | |
}: let | |
inherit (builtins) attrValues; | |
in { | |
hardware.video.hidpi.enable = true; | |
hardware.opengl = { | |
setLdLibraryPath = true; | |
enable = true; | |
extraPackages = attrValues { | |
inherit | |
(pkgs) | |
libglvnd | |
libGL_driver | |
mesa | |
; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment