aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-24 14:11:28 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-24 14:11:28 +0200
commitf2fa0657e156e8a3e76fa97a185f595b909e205d (patch)
tree9a7d765917bb594a807f5c9158df813eeed1b73d /modules/home
parentfix(modules/home): Use the canonical package name from `by-name` (diff)
downloadnixos-config-f2fa0657e156e8a3e76fa97a185f595b909e205d.zip
fix(modules/home/pkgs/brightness): Only include on laptops
Diffstat (limited to 'modules/home')
-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