Added Brightnessctl kernel params
This commit is contained in:
parent
4f448dd0ff
commit
a289fcd072
@ -23,7 +23,12 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Brightness Control
|
||||||
|
# Enabled and Kernel patched to control screen Brightness on Notebook
|
||||||
environment.systemPackages = with pkgs; [ brightnessctl ];
|
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 = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user