diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-24 14:11:28 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-24 14:11:28 +0200 |
commit | f2fa0657e156e8a3e76fa97a185f595b909e205d (patch) | |
tree | 9a7d765917bb594a807f5c9158df813eeed1b73d /modules | |
parent | fix(modules/home): Use the canonical package name from `by-name` (diff) | |
download | nixos-config-f2fa0657e156e8a3e76fa97a185f595b909e205d.tar.gz nixos-config-f2fa0657e156e8a3e76fa97a185f595b909e205d.zip |
fix(modules/home/pkgs/brightness): Only include on laptops
Diffstat (limited to '')
-rw-r--r-- | modules/home/pkgs/default.nix | 14 |
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 |