14 lines
391 B
Nix
14 lines
391 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
systemd.targets.ddcci-backlight = rec {
|
|
before = [ "modprobe@ddcci.service" "modprobe@ddcci-backlight.service" ];
|
|
wants = before;
|
|
};
|
|
|
|
systemd.services.display-manager.wants = [ "ddcci-backlight.target" ];
|
|
|
|
boot.extraModulePackages = [ (pkgs.ddcci-driver-with-global-control.override {
|
|
inherit (config.boot.kernelPackages) kernel;
|
|
})
|
|
];
|
|
}
|