From b179dd22e3c467c350d7c413988331d674508409 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 15 Feb 2023 14:33:08 +0900 Subject: feat(nixos/kompakt): enable GPU & backlight control --- nixos/kompakt/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nixos') diff --git a/nixos/kompakt/configuration.nix b/nixos/kompakt/configuration.nix index 716ceb5..e318ebc 100644 --- a/nixos/kompakt/configuration.nix +++ b/nixos/kompakt/configuration.nix @@ -48,6 +48,16 @@ sound.enable = true; + # Backlight control + programs.light.enable = true; + services.actkbd = { + enable = true; + bindings = [ + { keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10"; } + { keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10"; } + ]; + }; + fonts = { fontDir.enable = true; -- cgit 1.4.1