From f2fa0657e156e8a3e76fa97a185f595b909e205d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 24 May 2024 14:11:28 +0200 Subject: fix(modules/home/pkgs/brightness): Only include on laptops --- modules/home/pkgs/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'modules/home') diff --git a/modules/home/pkgs/default.nix b/modules/home/pkgs/default.nix index 2f1950ae..372572b2 100644 --- a/modules/home/pkgs/default.nix +++ b/modules/home/pkgs/default.nix @@ -2,6 +2,7 @@ pkgs, lib, config, + nixosConfig, ... }: with pkgs; let @@ -151,13 +152,16 @@ with pkgs; let battery # Check the battery level ]; - Backlight = [ - # Set the brightness level - (brightness.override + # TODO: Also support setting the brightness with multiple backlights <2024-05-24> + Backlight = + lib.optional nixosConfig.soispha.laptop.enable + ( + # Set the brightness level + brightness.override { backlightName = nixosConfig.soispha.laptop.backlight; - }) - ]; + } + ); Input = [ #piper # GTK application to configure gaming mice -- cgit 1.4.1