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 @@
{ { inputs, ... }: {
flake.modules.nixos.backlight = { flake.modules.nixos.backlight = { pkgs, ... }: {
programs.light = { environment.systemPackages = with pkgs; [
enable = true; brightnessctl
brightnessKeys = { ];
enable = true;
step = 5; 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%"
];
}; };
} }