1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00
nixos-hardware/asus/fx506hm
Andy3153 72b83c838d asus-fx506hm: use nvidia-open by default
Uses Nvidia open source kernel modules if driver version is higher than
555

Motivation:
1. Nvidia themselves will be using the open source kernel modules by
   default for drivers above version 555 and for boards that support it
   (like the one in this laptop)
2. this fixes kernel panics I've been having for months
2024-08-10 16:52:19 +00:00
..
default.nix asus-fx506hm: use nvidia-open by default 2024-08-10 16:52:19 +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;