about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/home/pkgs/default.nix14
1 files changed, 9 insertions, 5 deletions
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