diff options
author | Peter Hoeg <peter@hoeg.com> | 2020-05-28 19:14:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 19:14:51 +0800 |
commit | ad0df8414e35ffbc73fdb884f546c472b02ea7c8 (patch) | |
tree | 67ac5c60e17546e3d192672c2d2d38f6a2362d25 /nixos | |
parent | eb2a77adc3ff0130efb6ad851c51d2a6c16243a2 (diff) | |
parent | a3aec35383b5a4bfd89035b6d2501e03d647772e (diff) | |
download | nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.tar nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.tar.gz nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.tar.bz2 nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.tar.lz nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.tar.xz nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.tar.zst nixlib-ad0df8414e35ffbc73fdb884f546c472b02ea7c8.zip |
Merge pull request #88942 from peterhoeg/m/kde_ddc
powerdevil: add DDC support
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/plasma5.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index 60ef0159ff1a..6d48b899d231 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -158,6 +158,19 @@ in example = "vlc"; description = "Phonon audio backend to install."; }; + + supportDDC = mkOption { + type = types.bool; + default = false; + description = '' + Support setting monitor brightness via DDC. + </para> + <para> + This is not needed for controlling brightness of the internal monitor + of a laptop and as it is considered experimental by upstream, it is + disabled by default. + ''; + }; }; }; @@ -184,6 +197,12 @@ in }; }; + # DDC support + boot.kernelModules = lib.optional cfg.supportDDC "i2c_dev"; + services.udev.extraRules = lib.optionalString cfg.supportDDC '' + KERNEL=="i2c-[0-9]*", TAG+="uaccess" + ''; + environment.systemPackages = with pkgs; with qt5; with libsForQt5; with plasma5; with kdeApplications; [ frameworkintegration |