diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-08-29 23:53:40 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-08-29 23:53:40 -0700 |
| commit | af99b4960a9bf1043234354d685ed23818c14aaa (patch) | |
| tree | 9d6bd855c76c2c99e16321e1df4eeaadade28739 /machines/common | |
| parent | 8dcf355819cc6cd1e87924218c1adcd900ecda84 (diff) | |
new laptop
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; |
