1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-07-06 03:14:19 +02:00
nixos-hardware/asus/fx506hm
2024-05-26 08:44:07 +00:00
..
default.nix fix error 2024-05-26 08:44:07 +00:00
README.md add config for ASUS TUF FX506HM 2024-05-26 08:44:07 +00:00

ASUS TUF Gaming F15 FX506HM (2021)

This imports common modules for the Intel CPU and iGPU, Nvidia and PRIME render offloading, basic laptop configs, basic SSD configs and configs for ASUS batteries.

On top of that, it sets the right PCI bus IDs for the iGPU and dGPU to make PRIME work well and enables modesetting.

Useful other things to consider in your configuration

Battery charging limit

Due to the common module for ASUS batteries, you can make your battery only charge up to a certain percentage to improve its life. You can place something similar to the following in your configuration to enable it:

hardware.asus.battery =
{
  chargeUpto             = 85;   # Maximum level of charge for your battery, as a percentage.
  enableChargeUptoScript = true; # Whether to add charge-upto to environment.systemPackages. `charge-upto 85` temporarily sets the charge limit to 85%.
};

OpenRGB

You can use OpenRGB to control the RGB keyboard on this laptop. There's also plugins for it to get some extra RGB lighting modes if you wish. You can place the following in your configuration to enable it:

boot.kernelModules               = [ "i2c-dev" ];
hardware.i2c.enable              = true;
services.udev.packages           = [ pkgs.openrgb ];
services.hardware.openrgb.enable = true;