25 lines
478 B
Nix
25 lines
478 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
hyprlandEnabled = config.mod.hyprland.enable;
|
|
in
|
|
{
|
|
users.users.alex.extraGroups = [ "video" ];
|
|
programs.light.enable = true;
|
|
|
|
home-manager.users.alex = {
|
|
wayland.windowManager.hyprland = lib.mkIf hyprlandEnabled {
|
|
settings = {
|
|
bind = [
|
|
", XF86MonBrightnessUp, exec, ${pkgs.light}/bin/light -A 5"
|
|
", XF86MonBrightnessDown, exec, ${pkgs.light}/bin/light -U 5"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|