update system

This commit is contained in:
2025-09-19 13:20:35 +02:00
parent 6d296224ce
commit 8198e46252
5 changed files with 13 additions and 48 deletions

View File

@@ -15,31 +15,15 @@ in
enable = mkEnableOption "Enable optimisations for the Gigabyte FV43U monitor";
hdr = mkOption {
type = types.bool;
default = false;
default = true;
description = "Enable HDR support for the Gigabyte FV43U monitor.";
};
};
config = mkIf cfg.enable {
fonts.fontconfig.subpixel.rgba = "bgr";
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";
};
hardware.gbmonctl.enable = true;
boot.kernelParams = [ "video=DP-3:3840x2160-30@144" ];
services.colord.enable = true;
environment.systemPackages = [
(pkgs.runCommandNoCC "fv43u_icc" { } ''
@@ -53,9 +37,11 @@ in
monitorline = "DP-3,3840x2160@144,0x0,1,bitdepth,10,cm,${if cfg.hdr then "hdr" else "srgb"}";
in
{
home.sessionVariables = {
ENABLE_HDR_WSI = "1";
DXVK_HDR = "1";
programs.mpv.config = {
vo = "gpu-next";
gpu-api = "vulkan";
gpu-context = "waylandvk";
target-colorspace-hint = "auto";
};
wayland.windowManager.hyprland.settings = {
general.layout = "master";