Skip to content

Instantly share code, notes, and snippets.

@floscr
Last active April 7, 2022 10:15
Show Gist options
  • Save floscr/72f8f43e9339058ea4a520532455a3b3 to your computer and use it in GitHub Desktop.
Save floscr/72f8f43e9339058ea4a520532455a3b3 to your computer and use it in GitHub Desktop.
Elden Ring Nix Tests
# 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"
'';
};
};
}
{
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