Modules/Backlight: Swap out 'light' for brightnessctl

This commit is contained in:
2026-05-30 19:51:08 +02:00
parent 375fd4d842
commit f3724fee3a
+15 -8
View File
@@ -1,11 +1,18 @@
{
flake.modules.nixos.backlight = {
programs.light = {
enable = true;
brightnessKeys = {
enable = true;
step = 5;
};
{ inputs, ... }: {
flake.modules.nixos.backlight = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
brightnessctl
];
home-manager.sharedModules = [
inputs.self.modules.homeManager.backlight
];
};
flake.modules.homeManager.backlight = {
wayland.windowManager.hyprland.settings.bind = [
", code:232, exec, brightnessctl set 5%-"
", code:233, exec, brightnessctl set +5%"
];
};
}