feat(void): backlight driver for external monitor

This commit is contained in:
Khaïs COLIN 2024-10-29 21:01:13 +01:00
parent e15d40aa25
commit 2a3da177f1

View file

@ -1,6 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, ... }:
{
imports = [
./hardware-configuration-void.nix
@ -37,4 +38,12 @@
group = "music";
isNormalUser = true;
};
# enqble i2c-dev kernel module for control of backlight in external monitor
# https://discourse.nixos.org/t/how-to-enable-ddc-brightness-control-i2c-permissions/20800/3
boot.extraModulePackages = [
config.boot.kernelPackages.ddcci-driver
];
boot.kernelModules = ["i2c-dev" "ddcci_backlight"];
hardware.i2c.enable = true;
}