2024-02-03
You can control the backlight through the Light utility.
First the installation, update /etc/nixos/configuration.nix:
programs.light.enable = true;
Rebuild:
sudo nixos-rebuild switch
To set the brightness to max:
light -S 100