mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
update system
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user