Added Brightnessctl kernel params

This commit is contained in:
DerGrumpf 2025-09-06 01:18:23 +02:00
parent 4f448dd0ff
commit a289fcd072

View File

@ -23,7 +23,12 @@
./hardware-configuration.nix
];
# Brightness Control
# Enabled and Kernel patched to control screen Brightness on Notebook
environment.systemPackages = with pkgs; [ brightnessctl ];
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="*", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
'';
boot.loader = {
systemd-boot.enable = true;