mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
35 lines
594 B
Nix
35 lines
594 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
username,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.hardware.fv43u;
|
|
in
|
|
{
|
|
options.hardware.fv43u = {
|
|
enable = mkEnableOption "Enable optimisations for the Gigabyte FV43U monitor";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
fonts.fontconfig.subpixel.rgba = "bgr";
|
|
hardware.gbmonctl.enable = true;
|
|
boot.kernelParams = [ "video=3840x2160@144" ];
|
|
|
|
programs.steam.gamescopeSession = {
|
|
env = {
|
|
SCREEN_WIDTH = "3840";
|
|
SCREEN_HEIGHT = "2160";
|
|
};
|
|
args = [
|
|
"--hdr-enabled"
|
|
"--hdr-itm-enable"
|
|
];
|
|
};
|
|
};
|
|
}
|