improvements

This commit is contained in:
2025-02-03 13:40:08 +01:00
parent 84004b6391
commit 69db03c140
44 changed files with 905 additions and 2180 deletions

View File

@@ -21,12 +21,26 @@ in
extraPackages = with pkgs; [ rocmPackages.clr.icd ];
};
systemd.tmpfiles.rules =
let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [
rocblas
hipblas
clr
];
};
in
[
"L+ /opt/rocm - - - - ${rocmEnv}"
];
boot = {
# https://docs.kernel.org/gpu/amdgpu/module-parameters.html
kernelParams = [
"amdgpu.seamless=1"
"amdgpu.freesync_video=1"
"initcall_blacklist=simpledrm_platform_driver_init"
];
initrd.kernelModules = [ "amdgpu" ];
};
@@ -36,6 +50,7 @@ in
glxinfo
libva-utils
vulkan-tools
clinfo
];
};
}

Binary file not shown.

View File

@@ -17,15 +17,42 @@ in
config = mkIf cfg.enable {
fonts.fontconfig.subpixel.rgba = "bgr";
hardware.gbmonctl.enable = true;
boot.kernelParams = [ "video=3840x2160@144" ];
hardware = {
gbmonctl.enable = true;
firmware = [
(pkgs.runCommandNoCC "fv43u_edid" { } ''
mkdir -p $out/lib/firmware/edid
cp ${./fv43u_edid.bin} $out/lib/firmware/edid/fv43u.bin
'')
];
};
boot = {
kernelParams = [
"drm.edid_firmware=DP-3:edid/fv43u.bin"
"video=DP-3:3840x2160-30@144"
];
initrd.extraFiles."lib/firmware/edid/fv43u.bin".source =
pkgs.runCommandLocal "fv43u_edid" { }
"cp ${./fv43u_edid.bin} $out";
};
services.colord.enable = true;
environment.systemPackages = [
(pkgs.runCommandNoCC "fv43u_icc" { } ''
mkdir -p $out/share/color/icc
cp ${./fv43u.icc} $out/share/color/icc/fv43u.icc
'')
];
home-manager.users.${username} = {
home.sessionVariables = {
ENABLE_HDR_WSI = "1";
DXVK_HDR = "1";
};
wayland.windowManager.hyprland.settings = {
general.layout = "master";
master = {
orientation = "center";
always_center_master = true;
slave_count_for_center_master = 0;
mfact = 0.4;
};
monitor = [
@@ -34,6 +61,13 @@ in
];
xwayland.force_zero_scaling = true;
misc.vrr = 2; # VA suffers from VRR flicker
cursor = {
min_refresh_rate = 48;
no_break_fs_vrr = true;
};
experimental = {
xx_color_management_v4 = true;
};
};
programs.waybar.settings.mainBar."custom/brightness" =
@@ -81,16 +115,5 @@ in
interval = "once";
};
};
programs.steam.gamescopeSession = {
env = {
SCREEN_WIDTH = "3840";
SCREEN_HEIGHT = "2160";
};
args = [
"--hdr-enabled"
"--hdr-itm-enable"
];
};
};
}

Binary file not shown.