diff options
Diffstat (limited to 'machines/common')
| -rw-r--r-- | machines/common/base.nix | 2 | ||||
| -rw-r--r-- | machines/common/x11.nix | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/machines/common/base.nix b/machines/common/base.nix index 46c82d9..4146d98 100644 --- a/machines/common/base.nix +++ b/machines/common/base.nix @@ -3,6 +3,8 @@ enable = true; }; + security.polkit.enable = true; + nix.settings.experimental-features = [ "nix-command" "flakes" diff --git a/machines/common/x11.nix b/machines/common/x11.nix index ed2084a..7fca346 100644 --- a/machines/common/x11.nix +++ b/machines/common/x11.nix @@ -1,4 +1,25 @@ -{...}: { +{pkgs, ...}: { + environment.systemPackages = [pkgs.brightnessctl]; + + # brightness keys, handled at the evdev level so they work in any WM + services.actkbd = { + enable = true; + bindings = [ + { + # XF86MonBrightnessUp + keys = [225]; + events = ["key"]; + command = "${pkgs.brightnessctl}/bin/brightnessctl set 5%+"; + } + { + # XF86MonBrightnessDown + keys = [224]; + events = ["key"]; + command = "${pkgs.brightnessctl}/bin/brightnessctl set 5%-"; + } + ]; + }; + services.displayManager.ly = { enable = true; x11Support = true; |
